# Display Custom Post Type (CPT) on another post

### Step by step guide

Visit the **Advanced Views** tab in WordPress backend.

Click the **Add New** button to add a new *Layout*.

<figure><img src="/files/SFi8wjt6xa9uRhScRkUR" alt=""><figcaption></figcaption></figure>

Enter a **Name** for your *Layout*.&#x20;

<figure><img src="/files/8ZWGlQWWy2S2bW0nKybd" alt=""><figcaption></figcaption></figure>

Click the **Add Field** button in the *Fields* section.&#x20;

<figure><img src="/files/Kk5TS2vo87wrdNhOLRm4" alt=""><figcaption></figcaption></figure>

Then **select** the target *Group* from the list and the *Field* from the dropdown.&#x20;

<figure><img src="/files/FiDLs7WgsJhDPpjshXZh" alt=""><figcaption></figcaption></figure>

Continue to **Add Fields** until they've all been assigned.

<figure><img src="/files/jPMWOoztaFyEiXX7LhuZ" alt=""><figcaption></figcaption></figure>

Click on the **Publish** button to save and publish your *Layout*.&#x20;

**Copy** the shortcode from the sidebar.&#x20;

<figure><img src="/files/Naot95ah40dki15ZvXcP" alt=""><figcaption></figcaption></figure>

**Paste** the shortcode in a post or page.

<figure><img src="/files/y70H1bR5KpkSgQ53HX4H" alt=""><figcaption></figcaption></figure>

**Modify** the shortcode and **insert** the *object-id* parameter, as well as adding the *ID* of the post you want to display, then click the **Publish** button to save.

<figure><img src="/files/NBtUZKi1wdCAoz4m3nfE" alt=""><figcaption></figcaption></figure>

**Remember** to fill out the fields on the post of the *ID* you've used.

**Visit** the page containing the shortcode to see the results.

{% hint style="info" %}
Learn more about the Layout [shortcode](/advanced-views/shortcode-attributes/layout-shortcode.md) parameters.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wplake.gitbook.io/advanced-views/guides/display-custom-post-type-cpt-on-another-post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
