How to insert different ads on articles (posts) depending on their Category?

Posted in: Newsmag
Post count: 16

Hello,

Our sports magazine has different sponsors (Ads) on each category, so on the Category Snow the Ad refers to Hotels in the ski resorts and on the Surf category the Ads refer to Hotels on the shore… you get the idea, right?
Currently we use a external plugin (AdRotate Pro) but we’d rather like to deactivate it and use the feature in your Newsmag Theme to set a Top, Inline and Bottom Ad for every Post.

We’ve tried adding some simple PHP code like this:

<?php echo ‘<p>Hello World</p>’; ?>
<? php echo (‘Hello World’); ?>
<? php echo ‘Hello World’>

We wanted to see if the Ad displayed the content but it didn’t do it correctly.

Question 1: Can we add PHP into the Top, Inline and Bottom Ad boxes? If so, how?

Question 2: If not, how would you suggest we could modify the code so it filters the Ads per category?

Kind regards,

Jose

Post count: 6535

Hi

Actually we do recommend a plugin like Adrotate to extend theme’s ad system functionality, you can see this in our ads system guide: https://forum.tagdiv.com/ads-system-full-guide/
You can’t use php code inside any of theme’s ad spots. Sorry! and unfortunately the theme doesn’t have an option to filter the ads by category so to implement that feature you need custom work which we cannot offer it as we work hard on the development, updates, fixes and support.
You can always get a freelancer from sites like: http://studio.envato.com/ if you need this and don’t know how to do it yourself.

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newsmag’ is closed to new topics and replies.