Snippet Wordpress Custom Post Types Wordpress

WordPress conditional for custom post type

<?php
	if ( 'custom-post-type' == get_post_type() ) {
	  echo 'this';
	} else {
	  echo 'that';
	}
?>

A simple conditional if statement for custom post types i.e. display different content if it’s the defined custom post type. Just replace custom-post-type with the ID you have given your custom post type in register_post_type within your theme’s functions.php (usually) and then echo the content you want blah blah.

Source: http://codex.wordpress.org/Function_Reference/get_post_type