Hello, I am using simple hooks to show ads before the comment on a site but due to ad contract and sponsored posts, have to exclude this ad from showing only in a specified category.
Is there a code to show an ad in all categories but one that I can pop into simple hooks?
Please link to your site.
Add the conditional tag to the code to exclude content from being displayed on posts in the entire category
if (in_category ('category-slug') ) }
Volunteer who’s written 1814 tutorials & 3000+ Code Snippets for members – Not For Hire.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!