I am messed up with a issue. I am doing something to load different header template for all posts in category VIDEOS ( id = 109 ). I edited single.php file and on the top I replaced
<?php get_header(); ?>
with following code
<?php
$post = $wp_query->post;
if ( in_category(’109′) ) {
get_header('videos'); // use header-videos.php
} else {
get_header(); // use default header.php
}
?>
Before this, i already duplicated header.php file and renamed other one as header-videos.php & made changes to header-videos.php.
But, still despite all above code, default template is being loaded for all the posts including those are in categories videos .
Any idea where am I doing wrong ? Thanks in advance for help, please....