Excluding BlogHer Ads from Review and Giveaway Posts

Aug 27th

I finally figured out how to exclude my BlogHer Ads widget from my product review & sponsored giveaway posts!  Initially, my workaround was to eliminate the sidebars from those posts and archive pages, but this made my blog ugly and less functional.  After all, how were sweepers supposed to find more giveaways to enter?  I want them to be able to find the rest of my giveaways, but I also didn’t want to break the BlogHer Ads network rules.

Here’s what I did:

1. Install and activate the Widget Logic Plugin

2. Make a note of the category number for your review posts.  In my case, I have two different categories: “product reviews” and “giveaways”.


3. Go to your widgets panel and open the editor for your BlogHer Ads.  In the Widget Logic text field, add the wordpress conditional tag:


Include your category number inside the parentheses.  Be sure not to leave off the exclamation point, as it’s the one that means “NOT”.  If you have more than one category to exclude from this widget, make sure to add the “array” tag.  For example, my categories were numbers 117 and 22, so my tag was:



4. Hit save and then go check to see if it works!

Note: I am far from being a wordpress expert, so if you have any questions, I’ll do my best to answer them.  This is the fix that worked for me, and I can’t guarantee it will work for you!

Leave a Reply