You appear to be a bot. Output may be restricted
Description
Determine if the Blog template is being used.
is_page_template()
is not available within the loop or any loop that modifies $wp_query because it changes all the conditionals therein. Since the conditionals change, is_page() no longer returns true, thus is_page_template() will always return false.
Usage
$bool = genesis_is_blog_template();
Parameters
Returns
bool True if Blog template is being used, false otherwise.
Source
File name: genesis/lib/functions/general.php
Lines:
1 to 8 of 8
function genesis_is_blog_template() { global $wp_the_query; return 'page_blog.php' === get_post_meta( $wp_the_query->get_queried_object_id(), '_wp_page_template', true ); }