is_page_template not working ?
-
To modify the size of videos according to where they are displayed, I am using this in functions.php (the trick was shown to me by the Viper plugin’s author) :
function frmars_vvq_modifier( $atts, $tag, $rawatts ) { if ( in_category('6') ) { $atts['width'] = 300; $atts['height'] = 233; }
I’ve used this repeatedly and it works very well with :
if ( is_singular() ) { $atts['width'] = 560; $atts['height'] = 420; } if ( is_page() ) { $atts['width'] = 560; $atts['height'] = 420; }
But it does not work with
• if ( is_page_template() )Is this function broken ?
Am I using it the wrong way ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘is_page_template not working ?’ is closed to new replies.