Home Forums General Issues ACF PRO [5.1.3] get_field bug


ACF PRO [5.1.3] get_field bug

  • Since updating ACF to 5.1.3, the get_field check no longer works as expected.
    My template checks to see if a post is related to another and displays them if so using the relationship field.

    <?php if (get_field('secondary_menu')) : ?>
    <?php else : ?>
    Do something else
    <?php endif; ?>

    This previously worked, but now has stopped.

    I’ve tested to see if the values are getting pulled through using the below, and they are.

    <?php $test = get_field('secondary_menu'); ?>
    <pre><?php print_r($test); ?></pre>

    Changing between Object or ID mode for the custom field has no effect on getting the check to work as before.

  • Doing some extensive testing on the above, I believe the issues is not ACF but part of the theme interfering which just coincided with the latest update.

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

The topic ‘ACF PRO [5.1.3] get_field bug’ is closed to new replies.