Displaying fields from a Post
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.
1. How to display fields of the current Post
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.
2. How to display fields of a specific Post
Add any fields
Save the Layout, copy its shortcode
Add the
object-idargument, with target post ID or slug, as described below.Paste the shortcode inside the target place
Shortcode format
nameargument - used for clarification purposes only and doesn't play any functional role.idargument - associates the shortcode with a specific Layout.object-idoptional argument - target numeric post ID, orpostflag, if you load by slugpost-slugoptional 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.
3. How to display a Post field type
For displaying fields of the specific post chosen in the Post/Relationship field, please refer to this Relationship field guide.
Last updated