Template Conditionals
The following WordPress Conditional Tags can be used as Twig functions:
- is_archive
- is_post_type_archive
- is_attachment
- is_tax
- is_date
- is_day
- is_feed
- is_comment_feed
- is_front_page
- is_home
- is_month
- is_page
- is_paged
- is_preview
- is_search
- is_single
- is_singular
- is_time
- is_year
- is_404
- is_main_query