Support

Account

Home Forums Front-end Issues True / False feild – return label if true Reply To: True / False feild – return label if true

  • You can try:
    <?php if ( get_field( 'featured_property' ) ): ?><span class="property-badge">Featured</span><?php endif; ?>

    Or
    <?php if ( get_field( 'featured_property', get_the_ID() ) ): ?><span class="property-badge">Featured</span><?php endif; ?>