Displaying fields from an Options page
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 from an Options page
Add any fields
Save the Layout, copy its embedding shortcode
Add the
object-id="options"argumentEmbed Layout: paste the shortcode inside the target place
Shortcode format
To load fields from the options page, the Layout shortcode should contain at least 3 arguments:
[avf-layout name="Name" id="651d5d75bfdf2" object-id="options"]nameargument - used for clarification purposes only and doesn't play any functional role.idargument - associates the shortcode with a specific Layout.object-idargument - withoptionsvalue for ACF, andYOUR_OPTIONS_IDfor the MetaBox plugin.
You can also use the common Layout shortcode arguments to additionally customize this Layout embedding, e.g., limiting its visibility for specific user roles.
Last updated