[ad_1]
I have a custom post type with a relationship field (block). I’m able to select other posts of the same post type. However, on the frontend:
* Return Post Object: Only the title and permalink of the selected post shows, none of the custom fields do.
* Return Post ID: Shows the fields of the current post
I’m following what’s in the docs, but it’s not working. Any help or advice is appreciated.
[ad_2]
If you return the post object… You can add the post ID of the object in get_field
Of the top of my head,
$object = get_field(‘relationship’); get_field(‘field_name’, $object->id)