Home Forums ACF PRO Echo Only Chosen Option Reply To: Echo Only Chosen Option

  • Nevermind, I figured it out. 🙂

    If anyone needs to show an ACF value if a specific option has been chosen, then here is the code for that. Feel free to use away!

    You will need to change the field types with your own field names and options though!

    `<!– artwork availability –>
    <?php if(get_field(‘availability’) == “Sold”): ?>
    <div class=”sold”><?php echo the_field(‘availability’); ?></div>
    <?php endif; ?>
    <!– ./artwork availability –>`