For the complete documentation index, see llms.txt. This page is also available as Markdown.

Displaying Relationship (Post) field

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:

  1. ACF: any PostObject, Relationship field

  2. MetaBox: any Post field

  3. Pods: any Relationship field (for posts)

1. How to display a Relationship field

  1. Add any Relationship field

  2. Save the Layout, copy its embedding shortcode

  3. 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:

2. Displaying Post details

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:

  1. 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.

  2. 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

  3. 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