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

Shortcodes

All available ACPT shortcodes

ACPT provides shortcodes to display meta field values directly in post content, widgets, or any template that processes WordPress shortcodes.

Available shortcodes

Shortcode
Context
License

Custom post type meta fields

Free

Taxonomy / term meta fields

Free

User meta fields

Free

Attachment / media meta fields

Free

Comment meta fields

Free

Option page meta fields

Licensed

Render a form

Licensed

WooCommerce product attribute meta fields

Free

Shared parameters

The following parameters are available on all meta shortcodes ([acpt], [acpt_tax], [acpt_user], [acpt_media], [acpt_comm]):

Parameter
Required
Description

box

Required

The meta box name

field

Required

The field name

width

Optional

Width in px or % (Image, Gallery fields)

height

Optional

Height in px or % (Image, Gallery fields)

target

Optional

Link target: _top, _parent, _self, _blank (URL, Email, Phone fields)

date-format

Optional

PHP date format string, e.g. d/m/Y (Date, DateTime, Date Range fields)

time-format

Optional

PHP time format string, e.g. H:i (DateTime, Time fields)

phone-format

Optional

Phone number format: original, e164, international, national, rfc3966

elements

Optional

Number of images per row (Gallery field)

parent

Optional

Parent field name (Repeater nested fields)

index

Optional

Zero-based index of the nested row (Repeater field)

block_name

Optional

Block name (Flexible Content nested fields)

block_index

Optional

Zero-based block index (Flexible Content field)

render

Optional

For Select / Checkbox / Radio: value or label. For Email / Phone: text or link.

list

Optional

List render format: ul (default), ol, or string (Checkbox, Select Multi, List fields)

separator

Optional

String separator when list="string" (Checkbox, Select Multi, List fields)

classes

Optional

Additional CSS classes applied to the output wrapper

Last updated