Support

Account

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

  • Hi @colinf

    Could you please print_r() the get_the_ID() function like this:

    print_r(get_the_ID())

    Does it show the right ID? If it’s, then I think you can pass it to the get_field() function like this:

    $post_object = get_field('instructor', get_the_ID());

    Thanks 🙂