[Plugin: Promotion Slider] What do I target on the single.php page? A Category or Tag?
-
I’m using a template system that separates product content from news article content, and now along with the promotional slider, I have another type of content that uses the single.php file.
How can I target the content coming in from the promotional slider?
I’ve tried using the conditional statements for both the tags, and categories, and neither are filtering it.
What is the best way to do this?
I’ve tried:
<?php // MY ATTEMPT WITH USING in_category ?> <?php if (in_category(array('promotion'))) { ?> <!-- omit the product images if it uses the promotional slider--> <?php } else { ?> <?php } ?>
And:
<?php // MY ATTEMPT WITH USING has_tag ?> <?php if (has_tag(array('promotion'))) { ?> <!-- omit the product images if it uses the promotional slider--> <?php } else { ?> <?php } ?>
https://www.ads-software.com/extend/plugins/promotion-slider/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Promotion Slider] What do I target on the single.php page? A Category or Tag?’ is closed to new replies.