# 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="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FPQQqCxVxWOHEbpraq79a%2Fadd-new-view-item.png?alt=media&#x26;token=8cd7b09d-fb4f-4608-a905-0fb1eb9c31bd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FpC750Yh8OYElbSLmbYNg%2Fview-name.png?alt=media&#x26;token=4f08b67a-1051-4b28-b0b0-b79ae0b3994e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FLjuzaOGjfslJS1lTaJff%2Fadd-field.png?alt=media&#x26;token=b0581f27-5320-4485-a76d-d88a5b1447f0" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FsaD6SV0fIkCCGz9CKw8V%2Fassign-cpt-field-group.png?alt=media&#x26;token=17b496fe-8656-434d-b92e-1fe7aa8f589b" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FaJjZpMHzYSzmWS7VHxZi%2Fassign-all-fields.png?alt=media&#x26;token=9d487947-aa6d-4b91-a16f-a39722433bf5" 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="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FLZhsumX0JlOHzZOZOSZ2%2Fcopy-shortcode.png?alt=media&#x26;token=c4d693e1-fcbc-4809-b277-00e11d48b325" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2Fd2eU223GeVGXp8x1MaV6%2Fpaste-shortcode.png?alt=media&#x26;token=fbace087-8f8a-4895-bc0c-e968b0d2c94c" 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="https://2293383029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN2nAC4pTDjEmDu8ZkLB2%2Fuploads%2FIyEewqrviuQO2x2Gq2Wx%2Fanother-post-id.png?alt=media&#x26;token=23bf789c-b3f8-4ce4-8f4f-e4313a4f1f3d" 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](https://wplake.gitbook.io/advanced-views/shortcode-attributes/layout-shortcode) parameters.
{% endhint %}
