Code

This section contains many short pieces of code that I have written and may want to reference in the future. Feel free to use any of the code snippets in your WordPress based projects just bear in mind that I release them to you under the GNU Public License V2. Any software created that contains my code must possess a compatible license.

There are 29 entries in this category.
Post Title Comment Count Comment Link
Re-key an Indexed Array of Post Objects by Post ID 8 Add a comment
Post Format Queries 6 Add a comment
Scaling Images in IE8 with CSS max-width 10 Add a comment
Post Class for Posts with a “Read more” Link Add a comment
Image Post Format: URL Auto Discovery 10 Add a comment
Taxonomy Images 0.6 Snippets Add a comment
Display a Single Post via admin-ajax.php 5 Add a comment
Navigation List for Post Formats Add a comment
jQuery to the Rescue! 5 Add a comment
Function Testing with Action Hooks 3 Add a comment
Selective Page Hierarchy for wp_list_pages() 14 Add a comment
Enable Long Description Attributes on Images 12 Add a comment
Set Default Terms for your Custom Taxonomies 11 Add a comment
Hide the Header in TwentyTen Add a comment
Thickbox for WordPress Gallery 2 Add a comment
jQuery Peek-a-Boo Effect for Image Galleries Add a comment
Append a posts taxonomy terms to post class. 6 Add a comment
Getting Down and Dirty with WP_Query->set() 4 Add a comment
Dynamically Create Actions for Every Defined Taxonomy’s Column Header Add a comment
Dealing with Long Taxonomy Descriptions in the WordPress Administration Panels 7 Add a comment
Excerpts for Pages in WordPress 3.0 38 Add a comment
Query All Posts that are in More than One Category Add a comment
Custom Content Type: Add Theme Redirect 21 Add a comment
Remove Taxonomy Box from WordPress Administration Panels 1 Add a comment
Is Post in a Descendant Category? 1 Add a comment
Remove Gallery Settings Division 1 Add a comment
Hide content from visitors until they log in Add a comment
Remove Current Theme from Dashboard Add a comment
Display Recent Posts Anywhere in your Theme Add a comment
Fork me on GitHub