WordPress.org

Forums

AdRotate
[resolved] If Function Exists Display Directly in Theme (2 posts)

  1. Liltiger
    Member
    Posted 2 years ago #

    Hi there,

    I'm trying to display the adrotate directly into my theme, however, I'm having trouble getting it to work with the If Function Exists code. Here's what I've got:

    <?php if (function_exists('adrotate_group')) adrotate_group(5); ?>

    Where did I mess up? The ad group I need to use is #5.

    Thanks in advance!

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

  2. Arnan de Gans
    Member
    Plugin Author

    Posted 2 years ago #

    You need to echo the adrotate_group(5)

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.