Home Forums Front-end Issues Problem returning post object data Reply To: Problem returning post object data

  • Hi @colinf

    Were you trying to get the value outside of The Loop? Could you please try to debug it like this:

    echo '<pre>';
        print_r( get_field('instructor', 99)  );
    echo '</pre>';

    Where ’99’ is the post ID where the custom field is assigned. If it shows the right data, then you need to pass the ID or put the code inside The Loop.

    If that doesn’t help, could you please share the JSON or XML export file of your field group so I can test it out on my end?

    Thanks 🙂