WordPress Code Snippets

A fresh mix of code snippets and tutorials

WordPress Functions for Theme Testing


Some quick copy/paste snippets taken from my bluefeed.net dev site. Posting them here for reference so I can grab ’em as needed.

Add Custom Post Type (Book):

Add Custom Taxonomy (People):

Add Custom Taxonomy (Animals):

Modify main WP query:

Maybe will be adding more snippets to this post as needed.

Learn more

WordPress Themes In Depth

Show Support

Like our new Facebook Page to show support!