> 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/post.md).

# Displaying fields from a Post

{% hint style="info" %}
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.
{% 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 the current Post

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

1. [Create a new *Layout*](/advanced-views/getting-started/first-layout.md)
2. Add any fields
3. Save the *Layout*, copy its shortcode
4. Add the `object-id` argument, with target post ID or slug, as described below.
5. Paste the shortcode inside the target place

#### Shortcode format

```bbcode
[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"]
```

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` optional argument - target numeric post ID, or `post` flag, if you load by slug&#x20;
4. `post-slug` optional argument - target post slug. Its advantage over ID is that it remains the same across different installations (Staging/Live)&#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 %}

## 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](/advanced-views/field-types/relational/relationship-field.md).&#x20;
