- is_front_page()
- is_single()
- Returns true if the item is post, not page. It also accepts ID and name parameter of the post, so you could target specific posts as well.
- is_page()
- Returns true if the item is page, not post. It also accepts ID and name parameter of the page, so you could target specific pages as well.
- is_category()
- Returns true if the item is certain categories.
- is_singular()
- Returns true if the item is posts, pages, or attachments, but not blog loops, category pages, tag pages, and so on.
- True when viewing a regular post:
- is_singular( ‘post’ );
- True when viewing a post of the Custom Post Type book:
- is_singular( ‘book’ );
- True when viewing a post of the Custom Post Type newspaper or book:
- is_singular( array( ‘newspaper’, ‘book’ ) );
Word Count: 135
