Title: Else, else if
Last modified: August 21, 2016

---

# Else, else if

 *  [My](https://wordpress.org/support/users/midorian/)
 * (@midorian)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/else-else-if/)
 * I get it to show the postexpirator value, but not the avslutas or the “tills 
   vidare” it just leaves it blank on the website. :/ Not sure what I’m doing wrong,
   and would love for someones input on it.
 *     ```
       <?php if( shortcode_exists( 'postexpirator' ) ) { ?>
        <?php echo do_shortcode('[postexpirator]'); ?>
   
          <?php } elseif( get_post_meta($post->ID, 'avslutas', true) ) { ?>
          <?php echo get_post_meta($post->ID, "avslutas", true); ?>
   
       <?php } else {  ?>
       <p>Tills vidare</p>
       <?php } ?>
       ```
   

The topic ‘Else, else if’ is closed to new replies.

## Tags

 * [else](https://wordpress.org/support/topic-tag/else/)
 * [else if](https://wordpress.org/support/topic-tag/else-if/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [My](https://wordpress.org/support/users/midorian/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/else-else-if/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
