WordPress.org

Forums

AdRotate
[resolved] Show Ad Group in specified Tags (4 posts)

  1. kalligator
    Member
    Posted 2 years ago #

    Is there a way to extend the current functionality whereby along the categories option to show an Ad Group in, to add the ability to specify tags as well?

    http://wordpress.org/extend/plugins/adrotate/

  2. kalligator
    Member
    Posted 2 years ago #

    Turns out I had the wrong idea for the categories filter to begin with. It only applies for ad injection.

    Does anyone have any idea on how to build such a feature, where normal shortcode ads are aware of the categories / tags we set them for and show or hide accordingly?

  3. Arnan de Gans
    Member
    Plugin Author

    Posted 2 years ago #

    With some theme edits this is possible take a look at is_category() and is_tag().

    Or contact me via http://www.ajdg.net if you don't know how to do it.

  4. kalligator
    Member
    Posted 2 years ago #

    Thanks, I've done that in the meantime, it's not hard at all.

    However in the future I'll try and abstract this from direct theme hardcoding into the plugin options so as to make it easy for the user to choose.

    Can you give me any hints on which files should I focus?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AdRotate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.