WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Liltiger
    Member
    Posted 12 months 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 12 months ago #

    You need to echo the adrotate_group(5)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.