En teoría se hace con la función:
is_singular( 'postType' ) por ejemplo:
is_singular( 'post' )
Pero a mí no me funcionó desde el functions.php del tema, así que lo resolví así:
get_post_type() == "post"
En teoría se hace con la función:
is_singular( 'postType' ) por ejemplo:
is_singular( 'post' )
Pero a mí no me funcionó desde el functions.php del tema, así que lo resolví así:
get_post_type() == "post"