The general rule of thumb for adding post-format support to a theme has always been to use a theme setup function hooked in the after_setup_theme action that included the add_theme_support( ‘post-formats’, array( ‘aside’, ‘quote’ ) ); (as an example). This is all fine and dandy but if you want to add additional post-formats via a … ∞
It’s not like I invented a new way to slice bread, the idea of filtering a define statement’s value where the constant could be used as an option just seemed to make a good deal of sense. I also decided to use the idea in the next release of Opus Primus. Here’s the premise: there … ∞
Most plugins just have some standard details shown just below the plugin description when you look at your listing found under Plugins > Installed … wouldn’t it be nice to add your own specific links to the default ones WordPress already display? You can, and it really is quite easy. A standard hook call and … ∞
A few days ago, I submitted a ticket to the WordPress core trac to Filter Glyph for Comment Required Fields. The idea behind the patch I submitted being: Currently the comment-template.php file uses an asterisk (*) as the default glyph for required fields used in the comment_form() function. This glyph is not easily manipulated without … ∞
Seems simple enough; and, it is … just one line of code will add this functionality: You could add this to your active theme’s functions.php file, but the better method would be to use this from a plugin. Here is a simple, fully functional, code snippet for a plugin to do this: Like this:Like Loading…
From time to time an interesting Five-Minute-FixTM comes along that sparks a great reason to add another WordPress Tips post. The idea for this tip started with this comment at BuyNowShop.com: … how to remove the website section when leaving a reply/comment … The solution may be obvious to some and can be readily derived … ∞
A recent recommendation, starting with WordPress 3.3, from the WordPress Theme Review Team reads: Themes are REQUIRED to use wp_title filter to filter wp_title() (RECOMMENDED), or pass argument to wp_title() (OPTIONALLY), in order to modify document title content This has been discussed, worked through, and for the most part sorted out … but there doesn’t … ∞
Expand the wp_nav_menu() function by adding menu items to the output with the add_filter() function.