check if post is custom type
Check if post type matches the slug.
if( get_post_type() == 'recipes' ){
echo 'This is a recipe post!';
}
copy
Check if post type matches the slug.
if( get_post_type() == 'recipes' ){
echo 'This is a recipe post!';
}
copy