A list of all articles for the tag "functions".
Add Default Text for WordPress Pages and Posts
Making the WordPress ‘default_content’ hook work in your favor by easily adding default text to new pages, new posts or both. The code for this is slightly adapted from other ‘default text’ code I’ve seen online because it allows you to distinguish between whether you’re adding a new page or a new post.
Removing the WP Version – There’s More
Follow up to my Removing the WordPress Version. Basic information on how working with wp_register_script() could still show your WordPress version and what you can do to stop it.
WordPress Theme Options – Round 2
Re-exploring WordPress Theme Options to make using WordPress features easier to use as options. Looking for a way to add input fields for things like pages, posts, categories, tags and authors and why I think it’s a good addition.
WordPress Categories, RegEx and the Parent/Child Relationship
I couldn’t seem to find a WordPress function that would return an array of all categories in their parent/child relationship order – so I went ahead and coded a way. If you know of a better way, please share. If not, enjoy the code.
WP Widgets API – Adding Classes and Unique IDs
Adding unique IDs to your multiple use widget can make it extremely easy for your users to style the output. Using the WordPress Widgets API to access the property declarations of the WP_Widget class is the way to go. Learn from some sample code on how to add classed and unique IDs to your output.
DMG WordPress Theme Options
Looking to add easily add options to your WordPress themes? Look no further – the DMG WP Theme Options (version 2.0) is now available for download. Powerful and feature packed, yet a snap to use. Have a look, try it out and peek at the manual on the page as well. Let me know what you think.
Removing the WordPress Version
Make use of ‘hooks’ in your themes function.php file to remove the WordPress version number from being displayed anywhere on your website. See the different methods and learn which is the best to use.