Support

Account

Home Forums Front-end Issues Post Object: Selection does not show up in Custom Post Type Reply To: Post Object: Selection does not show up in Custom Post Type

  • Hi @nataliette

    Sounds like you need to do some debugging and make sure that ACF can load the value as expencted.

    Start by testing the value of:

    
    global $post;
    echo $post->ID;
    

    Is the global $post->ID the correct Company ID?

    Your code uses the setup_postdata function. This can be seriously dangerous if you don’t fully understand what it is doing to the global objects.

    Some simple debugging through your template files will help to find the issue.

    Good luck!