loops - Trying to write a PHP if/else statement but failing miserably can anyone help me out? -


so i'm trying make if/else statement in php, have if statement down , it's returning want, can't seem figure out else statement. have ideas?

<div class="row">         <?php while($items->have_posts())   : $items->the_post(); ?>                      <?php                       if( get_field('sauce_or_spice') ): ?>                     <div class="large-4 medium-6 columns">                         <h5><?php the_title(); ?></h5>                     <a href="https://shop.deadeyebbq.com/password" ?>                         <div class="thumbnail products">                             <?php the_post_thumbnail('thumbnail'); ?>                         </div>                     </a>                         <p><?php the_field('description'); ?></p>                         <p><?php the_field('price'); ?></p>                         <a class="video-button">buy now!</a>                     </div>                  <?php elseif( get_field(!('sauce_or_spice')) ): ?>                  <?php echo'hello'; ?>                 <?php endif; ?>         <?php endwhile;?>     </div> 

i think want <?php elseif( !get_field('sauce_or_spice') ): ?>


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -