Limit ads on posts with multiple categories
-
Hi,
I have post which live in multiple categories.
For example, I may have a post that is in both category A and category B.
I have one ad that should display in category A and another ad that should display in category B.
However, on that post’s “single” page, both ads are displaying.
Is there a way to limit the ad that displays to only be the “main” category for that post (whichever corresponds to the current category in the URL at least)?
/category/categorya/mypost
In this case, since mypost is being viewed via category A in the breadcrumbs, the category A ad should display, not the category B ad.I know we can ad logic, but I don’t know how to grab the list of “show on checked pages” to compare the post’s category.
If you know a way, I would appreciate it.
Best,
Joel
- The topic ‘Limit ads on posts with multiple categories’ is closed to new replies.