Forums Forums General Custom Fields doesn't show up (results.php)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Anonymous
    #213032

    Found the solution myself!

    <?php echo get_field('bfo'); ?>

    did the trick

    Trevor
    #213056

    Great to see this, but it would be better to test if the field has a value before echoing it, maybe like this:

    <?php if( get_field('bfo') ):?>
    <p>BFO: <?php the_field('bfo'); ?></p>
    <?php endif; ?>

    I will close this thread for now.

Viewing 2 posts - 1 through 2 (of 2 total)