Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress is_archive

// Returns true if wordpress is on an archive page
is_archive(); // For posts only
is_post_type_archive( $post_types ); // For a specific post type
// example: if (is_post_type_archive( 'news' )){ /* */ }
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
3+7 =