Problems with Child Category targeting in a header
-
Hi all,
I want to display a specific category logo inside my header.php file. However it doesn’t seem to be displaying.
It’s a child category of a parent category “blogs”…
Any help would be greatly appreciated.
<?php if ( in_category( 3160 ) ) { ?> <a href="<?php bloginfo('siteurl'); ?>/category/blogs/nat-sec-2016/"><img src="<?php bloginfo('siteurl'); ?>/wp-content/uploads/2015/09/NatSec2016.jpg" alt="#NatSec2016" width="330"></a> } else { };
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problems with Child Category targeting in a header’ is closed to new replies.