> 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/developers/shortcodes/acpt_media.md).

# \[acpt\_media]

Display an attachment (media) meta field value

Displays a meta field value associated with a WordPress media attachment. The attachment ID is required.

### Usage

```
[acpt_media pid="1203" box="box_name" field="field_name"]
```

### Parameters

| Parameter | Required | Description              |
| --------- | -------- | ------------------------ |
| `box`     | Required | The meta box name        |
| `field`   | Required | The field name           |
| `pid`     | Required | The attachment (post) ID |

All [shared parameters](/developers/shortcodes.md#shared-parameters) are also accepted.

### Example

Display a caption field for a specific attachment:

```
[acpt_media pid="1203" box="media_info" field="caption"]
```
