Title: conditional if elseif else question
Last modified: August 22, 2016

---

# conditional if elseif else question

 *  [mlarouche](https://wordpress.org/support/users/mlarouche/)
 * (@mlarouche)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/conditional-if-elseif-else-question/)
 * I have the following code that allows me to flip between the FEATURE image and
   an ADSENSE ad and I’d like to also include if an image in the post is used.
 * So if “image in post” or “has post thumbnail” then show images, otherwise INCLUDED
   the .php ad.
 * <?php if( has_post_thumbnail() ) { ?>
    <?php } else { ?> <?php include(‘adsense_singlepost_top_square.
   php’) ?> <?php } ?>
 * Anyone know how I can accomplish this?

The topic ‘conditional if elseif else question’ is closed to new replies.

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 0 replies
 * 1 participant
 * Last reply from: [mlarouche](https://wordpress.org/support/users/mlarouche/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/conditional-if-elseif-else-question/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
