header not pulling right category
-
My header in my archive.php it not pulling the right category.
Here is my code – is there something missing?<h1>
<?php if(is_category(3)) { echo ‘Magazine’; }
elseif(is_category(5)) { echo ‘Testimonials’; }
elseif(is_category(21)) { echo ‘Learning’; }
elseif(is_category(22)) { echo ‘Events’; }
elseif(is_category(26)) { echo ‘Deals’; }
elseif(is_category(27)) { echo ‘Magazine’; }
else { echo ‘Blog’; }
?>
</h1>many thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘header not pulling right category’ is closed to new replies.