Support

Account

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

  • Hi @colinf

    That’s weird. If you put it inside The Loop, the returned value should be right. Did you add the code in an included file? If that’s the case, then you need to get the global $post variable first like this:

    global $post;
    $post_object = get_field('instructor', $post->ID);

    If that’s not the case, then could you please share the full template code you have? You can copy a long code to https://gist.github.com/.

    Thanks 🙂