AD Rotate Multisite

Posted in: Newspaper
Post count: 11

Hi!

We use Ad Rotate Pro for Multisite.
We only can use PHP Codes, Shortcodes will not work Global.
When we insert our php Code:

<?php echo adrotate_group(1,0,0,1);
?>

Into ThemePanel ADS, this do not work.

<div class=”td-a-rec td-a-rec-id-sidebar td_uid_25_5a33ddb0b66e9_rand td_block_template_1″><span class=”td-adspot-title”>- Advertisement -</span><!–?php echo adrotate_group(1,0,0,1); ?–></div>

Its uncommand!

Can anyone help?

Post count: 9544

I don’t think you can add php functions into the ad panel as those are wrapped in a php function already …
so you might try the

function myfunc{ get blah }
kind of thing

Or simply add the code to the actual template files, or insert via function in function file or plugin.

I don’t work here, just some feedback.

  • This reply was modified 8 years by simchris.
Post count: 20688

Hi,

You will have to enter adrotate shortcodes in the theme panel ads sections, not PHP code. Maybe these guides would be useful to configure the plugin
https://ajdg.solutions/manuals/adrotate-manuals/
http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/

Thanks

Post count: 11

Thank u for Answer!

Shortcodes will not Work in Multisite Mode:

Mastersite
–>Site1
–>Site2
–>Site3
–>Sitex

AdRotate is Activated at Mastersite
Masterside accept Shortcodes
Site1 and all other say:
…. not Found!

Post count: 20688

Hi,

I have found some similar topics regarding Adrotate and multisite
https://ajdg.solutions/manuals/adrotate-manuals/set-up-a-multisite-advertising-network/
https://ajdg.solutions/manuals/adrotate-manuals/show-adverts-on-your-site/
Additionally you could ask on the plugin forum as well
https://ajdg.solutions/forums/forum/adrotate-for-wordpress/

Thanks

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