WordPress function to check if the current post is a custom post type
Simply paste this code into your functions.php file: function is_custom_post_type() { global $ wp_query; $ post_types = get_post_types(array('public' => true,'_builtin' => false),'names','and'); foreach ($ post_types as ... Read More