Variable post title length This snippet will allow you to define a custom length post title in your template...
modify custom post type query on archive page Set a custom order for posts in a custom post type on archive pages. ...
Show custom meta fields outside the loop Use this WordPress snippet to display a custom meta field outside the loop in your...
List popular posts based on comment count place this code in your sidebar's code to display 10 posts ranked by their comments...
List all categories and their matching posts Use it on your archives.php template. This function grabs the categories and lists all according...
Set minimum word count for posts This snippet defines a minimum word count for new posts. If a post does not...
Relative date posted x days ago We require two functions for comments and posts. Each display a relative date and instead...
Set first image as featured image grabs the first image in your body content and sets it as the post's featured...