is_post_type_archive


is_post_type_archive ( $post_types = '' )

Parameters:
  • (string|array) $post_types Optional. Post type or array of posts types to check against.
Returns:
  • (bool)
Defined at:

Description

Determines whether the query is for an existing post type archive page.

For more information on this and similar theme functions, check out the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ Conditional Tags} article in the Theme Developer Handbook.

Related Functions

is_post_type_hierarchical, post_type_archive_title, get_post_type_archive_link, is_post_type_viewable, get_post_type_archive_template

Top Google Results

User discussions

wpseek mobile