> For the complete documentation index, see [llms.txt](https://wplake.gitbook.io/advanced-views/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wplake.gitbook.io/advanced-views/field-sources/objects/menu.md).

# Displaying fields from a Menu

{% hint style="info" %}
In WordPress, Menus can also have custom fields - usually created with ACF, MetaBox, or Pods. Advanced Views allows you to display them.
{% endhint %}

In Advanced Views, [*Layout*](/advanced-views/getting-started/first-layout.md) 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.&#x20;

Shortcodes also support arguments, allowing you to customize the behavior of the same entity in different contexts.

## 1. How to display fields of a specific Menu

1. [Create a new *Layout*](/advanced-views/getting-started/first-layout.md)
2. Add any fields
3. Save the *Layout*, copy its [embedding shortcode](/advanced-views/layouts/embedding-shortcode.md)
4. Add the `object-id="menu"` argument
5. Optionally. Add the `menu-slug="YOUR_SLUG"` &#x20;
6. Embed *Layout*: paste the shortcode inside the target place

#### Shortcode format

To load fields from the options page, the *Layout* shortcode should contain at least 4 arguments:

```bbcode
[avf-layout name="Name" id="651d5d75bfdf2" object-id="menu" menu-slug="YOUR_SLUG"]
```

1. `name` argument - used for clarification purposes only and doesn't play any functional role.&#x20;
2. `id` argument - associates the shortcode with a specific *Layout*.
3. `object-id` argument - with `menu` value&#x20;
4. `menu-slug` - specifies the menu slug whose fields should be displayed.&#x20;

{% hint style="success" %}
You can also use the common [*Layout* shortcode arguments](/advanced-views/layouts/embedding-shortcode.md) to additionally customize this *Layout* embedding, e.g., limiting its visibility for specific user roles.
{% endhint %}
