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’) ) }
Specializing In StudioPress Child Theme Customization.
500+ StudioPress Tutorials
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.