Displaying fields from a Post
Last updated
This page refers to "Post" as a generic WordPress term that covers Post, Page, any Custom Post Type, Media attachment, Woo Product, and other entities. With Advanced Views, you can display fields from any entity.
In Advanced Views, Layout embedding happens using native WordPress shortcodes. Each Layout has its own unique shortcode that can be pasted into any location, regardless of the theme, editor, or page builder you're using.
Shortcodes also support arguments, allowing you to customize the behavior of the same entity in different contexts.
Add any fields
Save the Layout, copy its embedding shortcode
Embed Layout: paste the shortcode inside the target place
That's it! By default, the shortcode loads the Layout from the current post and doesn't require any changes.
Add any fields
Save the Layout, copy its shortcode
Add the object-id argument, with target post ID or slug, as described below.
Paste the shortcode inside the target place
name argument - used for clarification purposes only and doesn't play any functional role.
id argument - associates the shortcode with a specific Layout.
object-id optional argument - target numeric post ID, or post flag, if you load by slug
post-slug optional argument - target post slug. Its advantage over ID is that it remains the same across different installations (Staging/Live)
You can also use the common Layout shortcode arguments to additionally customize this Layout embedding, e.g., limiting its visibility for specific user roles.
For displaying fields of the specific post chosen in the Post/Relationship field, please refer to this Relationship field guide.
Last updated
[avf-layout name="Name of Layout" id="651d5d75bfdf2"]
[avf-layout name="Name" id="651d5d75bfdf2" object-id="YOUR_POST_ID"]
[avf-layout name="Name" id="651d5d75bfdf2" object-id="post" post-slug="YOUR_POST_SLUG"]