Title: Conditional Statement adrotator plugin
Last modified: August 19, 2016

---

# Conditional Statement adrotator plugin

 *  [4k](https://wordpress.org/support/users/4k/)
 * (@4k)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [4k](https://wordpress.org/support/users/4k/)
 * (@4k)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/conditional-statement-adrotator-plugin/#post-886449)
 * 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.

## Tags

 * [conditional statement](https://wordpress.org/support/topic-tag/conditional-statement/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [4k](https://wordpress.org/support/users/4k/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/conditional-statement-adrotator-plugin/#post-886449)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
