Joshua David Nelson

Bullshit Free WordPress Development

  • Services
  • Code
  • About
  • Contact

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.

Snippets by Tag:

archive author avatar Categories co-author plus conditional css custom field custom post type debug filter Genesis grid loop layout metadata Page Template page type plugin post meta post save post status Post Title RSS scripts scripts-to-footer search SEO settings shortcode Sidebar sql Tags Taxonomy term meta woocommerce wp_head

Like This Site? Buy the WordPress theme and others by StudioPress.

StudioPress Premium WordPress Themes

Recent Posts

  • Using Font Awesome Icons for WooCommerce Grid / List Toggle
  • Disable Blog: WordPress Gone Blog-less
  • Category (Taxonomy) Dropdown Filtered By Post Type
  • Twitter
  • RSS Feed URL
  • Code Snippets
  • My Plugins
  • Make a Payment
  • Donate

© Joshua David Nelson | Hand-Forged | WordPress + Genesis | Terms of Service | Legal | Contact