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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.