For the complete documentation index, see llms.txt. This page is also available as Markdown.

[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 are also accepted.

Example

Display a caption field for a specific attachment:

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

Last updated