• 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.