If it is a single page: is_single()
returns TRUE
.
If a $post
is in a specific category: in_category( $cat )
returns TRUE
. It needs $cat
as ID, name or (string) slug.
Anyway: Searching for a list of conditional tags isnĀ“t that hard.
If it is a single page: is_single()
returns TRUE
.
If a $post
is in a specific category: in_category( $cat )
returns TRUE
. It needs $cat
as ID, name or (string) slug.
Anyway: Searching for a list of conditional tags isnĀ“t that hard.