Support

Account

Home Forums General Issues get_field returning null after update Reply To: get_field returning null after update

  • The following code now returns nothing on the category.php template, used to work fine. I use this code on multiple sites:

    <php while (have_posts()) : the_post(); ?>
    <h3 class="text-center"><?php the_title(); ?></h3/>
    <?php the_field('r4m_video_url'); ?>
    <?php if ( get_field( 'r4m_video_description') ): ?>
    <?php the_field('r4m_video_description'); ?>
    <?php endif; ?>
    <?php endwhile; ?>

    ‘r4m_video_url’ is a text field for iframe code.

    Any ideas what is causing the error?