
A handy code snippet to show how to use the new WordPress 3.3 image_size_names_choose filter to display all image sizes (ie those created by add_image_size() as well as the default image sizes) in the Media Uploader.
Wordpress site design and development, plugins, code ideas, template tags and css resources for bloggers
This is the archive for Code Snippets - little bits of PHP to do interesting things in WordPress. By their very nature, Code Snippets tend to be short, sharp and to the point, and deal with one specific issue. More detailed tutorials and articles covering web site development using WordPress are filed under Web Development.

A handy code snippet to show how to use the new WordPress 3.3 image_size_names_choose filter to display all image sizes (ie those created by add_image_size() as well as the default image sizes) in the Media Uploader.

A follow up to my add_image_size() demo article, showing you how to stop WordPress from automatically creating all or any of the default image sizes (thumbnail, medium, large) during the media upload process.

The $current_screen global variable contains information useful for plugin and theme authors to find out which WordPress file is generating the current admin screen. This article gives an overview of the $current_screen variable and how to access it.

How to add “read more” links and change the length of the text generated by the_excerpt() Wordpress function. Examples for both Auto and Manual excerpts.

Here’s an update to the previous article on adding contextual help to Wordpress plugin options/settings pages, which describes how to maintain compatibility with the new $screen object in Wordpress 3.0.

A tutorial to show how to implement dynamic menu highlighting of Wordpress category menus when viewing single post pages.

How to limit the number of Post Revisions automatically saved by Wordpress, or suppress them altogether, together with how to delete existing Post Revisions from the Wordpress database.

How to use the Wordpress Action hook “contextual_help” to add useful Help or other notes to a plugin’s Settings page. Although of greatest use for plugin developers, it could also be used by theme developers to add additional Help info to customised Post/Page Edit screens.
How to disable wpautop() and take control of your paragraph and line-break tags when using the Wordpress Post/Page Editor.
In addition to being a resource for my plugins and Wordpress development, this site is also my coding and CSS playground. So don't be surprised if it looks wonky from time to time!

Please note, I have just released a further update, version 1.2.1, to fix a bug reported by a user. … [More]

I am pleased to announce that a beta of version 4.0 of the Dynamic Content Gallery plugin for … [More]

I don't know about you, but I have always found it frustrating that new image sizes added via the … [More]

This post is in response to a question that has cropped up a couple of times in the Comments of my … [More]

If you are a plugin or theme author and your plugin/theme does something with a Dashboard admin … [More]

Further to my first post on this subject, I've been keeping an eye on the Active Version piechart … [More]

I am currently working on a major update to the Dynamic Content Gallery plugin for WordPress and, in … [More]
by StokeMyFire on January 28, 2012
by htfenner on January 27, 2012
by Ade on January 26, 2012
by Ade on January 26, 2012
by tim on January 25, 2012
by TC7 on January 25, 2012
Copyright © 2008-2012 Studiograsshopper · Custom Child Theme using Genesis Theme Framework · Log in