Code Snippets

Saving useful code as I find it, build it, or stumble into it.

Fork Me on GitHub

Is_Custom_Post_Type()

Checks if the current post is a custom post type, returns boolean. Very handy when working with custom post types, layouts and the like.