WordPress.org

Support

Support » How-To and Troubleshooting » Conditional Statement adrotator plugin

Conditional Statement adrotator plugin

  • I am trying to write a conditional statement for the adrotator plugin so the theme doesn’t break if I have to deactivate the plugin.

    Everything I have tried either shows nothing or gives me a t-string error.

    Can anyone point me in the right direction?

    this is the statement supplied by the plugin
    <?php echo getad('bannerad') ?>

    this is the lastest attempt at a conditional statement

    <?php if(function_exists('adrotator')) :
    echo getad('bannerad'); endif; ?>
Viewing 1 replies (of 1 total)
  • figured it out, will put it here for anyone else who may be interested.

    <?php if(function_exists('getad')) : echo getad('bannerad'); endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional Statement adrotator plugin’ is closed to new replies.
Skip to toolbar