Reputation: 1064
So I will preface this with being new to Wordpress/ACF but can do the basics.
I can set up fields and post types and query through them and do loops.
This I am not sure how to do.
I have a post type of properties that each have an assigned contact our of 3 people. I would like to enable to client in the backend when creating a property to be able to choose the assigned contact from a dropdown menu or a set of checkboxes.
That when a visitor clicks on that property the front end displays the contacts name email and phone number which are fields from the contacts bio post type.
I have a relationship field set up to go through the Bios and return the IDs but not sure where to go from there.
Thanks!
Upvotes: 0
Views: 528
Reputation: 602
If relation returns selected post's ID you can easy use get_fields($post_id)
or get_field($key, $post_id)
.
Upvotes: 1