Support

Account

Home Forums Front-end Issues Custom fields placed after a while/endwhile statement aren't showing up. Reply To: Custom fields placed after a while/endwhile statement aren't showing up.

  • Hi @jeff_deuce
    Without looking at your code, it sounds like the issue is that during the loop you are overriding the global $post object.

    Outside of the loop, you will need to run the wp_reset_postdata function to return the $post to it’s origional value!

    Then your get_field / the_field will work.

    There are some good examples of this in the post_object documentation

    Thanks
    E