New answers tagged

-2

If by 'blog page' you meant a static page set as posts page in the Reading: global $wp_query; if ( isset( $wp_query ) && (bool) $wp_query->is_posts_page ) { //static blog page } PS. This solution also works on template_redirect action



Top 50 recent answers are included