Tag: functions

A list of all articles for the tag "functions".

Default Text in Editor - thumbnail

Add Default Text for WordPress Pages and Posts

Categories: Blog, Development, WordPress
Tags: , , , ,

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.

1 Comment

Continue Reading...

 
 
WordPress Hook

Removing the WP Version – There’s More

Categories: Blog, Development, WordPress
Tags: , , , ,

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.

No Comments

Continue Reading...

 
 
WordPress Theme Options - Round 2

WordPress Theme Options – Round 2

Categories: Blog, Development, WordPress
Tags: , , , , , , , , , ,

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.

No Comments

Continue Reading...

 
 
WordPress Cats, RegEx and Parent/Child Relationships

WordPress Categories, RegEx and the Parent/Child Relationship

Categories: Blog, Development, Personal, PHP, WordPress
Tags: , , , , , , ,

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.

No Comments

Continue Reading...

 
 
WP Widgets API - Classes and IDs

WP Widgets API – Adding Classes and Unique IDs

Categories: Blog, Development, WordPress
Tags: , , , , , ,

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.

2 Comments

Continue Reading...

 
 
DMG WP Theme Options v0.5

DMG WordPress Theme Options

Categories: Development, Downloads, Portfolio
Tags: , , , , , , , , ,

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.

2 Comments

Continue Reading...

 
 
WordPress Hook

Removing the WordPress Version

Categories: Blog, Development, WordPress
Tags: , , , , ,

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.

No Comments

Continue Reading...