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: - Introduced in WordPress: 3.1.0
- Deprecated in WordPress: —
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.