Displaying Relationship (Post) field
Last updated
The Relationship field type creates an interactive dropdown to select one or more posts, pages, or custom post type items.
Advanced Views natively supports the following Relationship types:
ACF: any PostObject, Relationship field
MetaBox: any Post field
Pods: any Relationship field (for posts)
Add any Relationship field
Save the Layout, copy its embedding shortcode
Embed Layout: paste the shortcode inside the target place
Advanced Views automatically creates HTML link markup for the chosen post(s). You can create a dedicated field Layout to display fields of the chosen post instead:
Sometimes, instead of displaying the selected post as a link, you may need to display some fields of the selected post with your current Layout.
To display post details, follow these steps:
Create a ‘Post Details’ Layout: This Layout will be responsible for displaying post details. In the Fields tab, assign the post fields you want to display, then publish the Layout.
Create a page Layout: Create a page Layout. In the Fields tab, add the target Post field, and assign 'Post Details' as a Field Layout, then publish the page Layout
Embed page Layout: copy and paste the page Layout shortcode inside the target place
That's it! Now you can customize the Layout template to use the Post Object render options.

Use a Relational field to 'link' two Custom Post Types (CPT) together. Combine it with a Meta Filter (Pro) to display related content.
Last updated