Hi, I’m having trouble pulling data from a custom post type. Here it is:
I have two custom post types:
Team Members
Services
I have a Post Object set up in ACF attributed to the Services posts which pulls the posts from the Team Members CPT. So in each of the services posts you can select the Team Members that offer it through the Post Object ACF field. Let’s say I have selected John, Chris, and James.
In the Layout editor I have created a new Layout for the Services CPT. Within this Layout I have a column with a Provider set to Query Builder and Services as the post type.
Within this column I have a text element with {{dc:post:meta key=“sp”}}
However when I try to display the Custom Field for the Post Object it just displays the post IDs instead of the names.
So instead of saying: John, Chris, James - it says 50,255,357
How can I get it to display the Post Names instead of the Post IDs?
Ideally I would like to pull the name of the provider wrapped in a link to their profile, and possibly the feature image from their Team member CPT post. Very similar to the Posts (list) element.
Please let me know if this makes sense and if there is a better way of going about this!
Cheers,
David