I have two CPT's.
The first CPT is called "Team members". The second CPT is called "Articles".
I would like to use a view displaying field values from "Team members", within the content template for "Articles".
In other words; associate one "Team member" with one "Article".
So I can display (for example) a "Team member" title within the content template for an "Article".
Is this possible?
Hello, yes it is certainly possible to display fields from one post in another post. A View is designed to display more than one post, so it would be more useful with a one-to-many or a many-to-many relationship. However, you only need to associate one post to one other post, so a View isn't really necessary. You can display fields from one post in another related post easily without the need for a View when you use a Post Reference field to connect the posts. We have more information about using Post Reference fields available here: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/using-post-reference-fields-to-display-information-from-a-related-post/
Let me know if you have questions about that or if you have trouble implementing it, and I can offer more guidance.
Thanks! I followed the instructions in the documentation you pointed to, and success!
Just one more "nice-to-have", but not essential:
From each post in one CPT, I intend to connect to 4 or 5 fields in the other CPT post. Is there a way to group those fields, so only one connection field needs to be selected? (Kinda like a view containing the 4 or 5 fields.)
Is there a way to group those fields, so only one connection field needs to be selected?
What about another Content Template, like a nested Content Template? You can display as many or as few fields from post A in post B as you'd like. I'm not sure I understand what you mean, can you provide more details?
Let's say you have post type A connected to post type B with a post reference field. You want to display several fields from post type A in the Content Template for post type B. So in that template for post type B, insert a Fields and Text block. Each time you insert a field in that block, you'll have the option to choose from which post you want the field to be displayed (screenshot attached).
My issue is resolved now. Thank you!