is_post_type_archive


is_post_type_archive ( $post_types = '' )

Parameters:
  • (string|string[]) post_types Optional. Post type or array of posts types to check against. Default empty.
Returns:
  • (bool) Whether the query is for an existing post type archive page.
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 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