place certain ad when the post is from a certain category
-
i have on my website 4 category’s of post , bmw,mercedes,audi,general. Now i want on the individual page of a post display a certain ad. So if the post is about audi, i want to display an audi banner beneath the post. Bmw post an bmw banner. Now i tried i with this code :
<?php if(the_category == ‘bmw’){
echo ‘ bmw banner ‘;
} ?>but it doesn’t work.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘place certain ad when the post is from a certain category’ is closed to new replies.