• I want to display a sidebar ad only for one specific category page of my blog. Is there a way to code the ad so that it will only display when someone visits my site using that category’s URL (or perhaps it could be coded to display for any individual blog post assigned to that category)?

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can try to create a "category-specific.php" that’s only display specific category post’s {by "?cat=4"}, so you can add the specific category ADVERTISING to your page, it’s really simple coding,

    Cheerz!,
    Hope this can Help!,

    I am not sure the “solution” posted above – doesn’t make a lot of sense…

    Read about the conditionals:
    https://codex.www.ads-software.com/Conditional_Tags

    Thread Starter richards1052

    (@richards1052)

    Moshu: Thanks, that gets me a little closer to what I want. Now, I’ll have to work on how to incorporate it into the ad display code.

    Not “into” but around it.

    if is_category(X)
    //your ad code here
    endif

    Note. the above is NOT a working code just the idea…

    Thread Starter richards1052

    (@richards1052)

    Not “into” but around it.

    Of course, that makes perfect sense. It would have to be based on an “if” clause/statement that would surround the ad code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display sidebar ad for specific category’ is closed to new replies.