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.

Source: https://gist.github.com/joshuadavidnelson/8291503

Tags: , ,