wordpress is archive

Solutions on MaxInterview for wordpress is archive by the best coders in the world

showing results for - "wordpress is archive"
Beatrice
11 Jul 2018
1// Returns true if wordpress is on an archive page
2is_archive(); // For posts only
3is_post_type_archive( $post_types ); // For a specific post type
4// example: if (is_post_type_archive( 'news' )){ /* */ }