> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/forms/examples-of-form-usage/modify-an-existing-post-type.md).

# Modify an existing post type

Create a new form and set `Post Management` as action.

You can select the post type to be modified in two ways.

### Select the post from the new form modal

Pick up the desired post type and select the Post to edit, like in this example:

<figure><img src="https://3235524095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fiyf0tSKPgXiyoQ3zV3I6%2Fuploads%2Fgit-blob-a61d90ede2f3e71f66ed87571b07f7981c94bd6c%2Fform-modify-existing-post-type.png?alt=media" alt=""><figcaption></figcaption></figure>

### Injecting pid in the shortcode

Add pid to the shortcode:

```php
[acpt_form id="e45b2639" pid="123"] // where 123 is the ID of the post  
```

This particular syntax can also be used in a post loop:

```php
if ( have_posts() ) {
    while ( have_posts() ) {
        the_post();
        
        echo do_shortcode('[acpt_form id="e45b2639" pid="'.get_the_ID().'"] ');
    }
}

```

{% hint style="danger" %}
Be careful, if the post ID is wrong, the form will not be displayed.
{% endhint %}
