php code for displaying one ad among many in specific category?
-
I have multiple categories and multiple image banners specific to each category. I can get one ad to appear and disappear just fine with this code in the template:
<?php the_ad(316); ?>
But the above will not work with more banners as each one has its own id. I don’t want to group these ads because they are specific to each category.
I assume that I need an array to get this to work? What would the proper php code be? I can’t use shortcodes unfortunately.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘php code for displaying one ad among many in specific category?’ is closed to new replies.