Shortcodes

16 Mar 2023 0

ACPT exposes different shortcodes to display meta fields.

Use the table below as a quick reference:

ShortcodeParametersUsage exampleDescription
acpt
  • pid The Post ID. If not provided, the global $post object will be used to get it.
  • box (Required) The box name
  • field (Required) The field name
  • width The width (in pixel o %) of images (only for Image and Gallery fields)
  • height The height (in pixel o %) of images (only for Image and Gallery fields)
  • target The target of hyperlinks (only for Link field)
  • dateFormat The date format (only for Date field)
  • elements The number of elements per row (only for Gallery field)
  • parent The parent element (only for nested fields of a Repeater field)
  • index The numeric index of the nested field (only for Repeater field)
  • render Render the value or label (only for Checkbox, Radio, Select and Select Multi field)
[acpt box='box_name' field='field_name']This shortcode render
acpt_option
  • box (Required) The box name
  • field (Required) The field name
  • width The width (in pixel o %) of images (only for Image and Gallery fields)
  • height The height (in pixel o %) of images (only for Image and Gallery fields)
  • target The target of hyperlinks (only for Link field)
  • dateFormat The date format (only for Date field)
  • elements The number of elements per row (only for Gallery field)
  • parent The parent element (only for nested fields of a Repeater field)
  • index The numeric index of the nested field (only for Repeater field)
  • render Render the value or label (only for Checkbox, Radio, Select and Select Multi field)
[acpt_option box='box_name' field='field_name']This shortcode renders a option page meta field.
acpt_tax
  • tid The Term ID. If no tid or term are provided, the get_queried_object() is used to try to fetch the term ID
  • term The Term name
  • box (Required) The box name
  • field (Required) The field name
  • width The width (in pixel o %) of images (only for Image and Gallery fields)
  • height The height (in pixel o %) of images (only for Image and Gallery fields)
  • target The target of hyperlinks (only for Link field)
  • dateFormat The date format (only for Date field)
  • elements The number of elements per row (only for Gallery field)
  • render Render the value or label (only for Checkbox, Radio, Select and Select Multi field)
[acpt_tax term='category' box='box_name' field='field_name']This shortcode renders a taxonomy meta field.
acpt_user
  • uid The user ID. If not provided, the
  • box (Required) The box name
  • field (Required) The field name
  • width The width (in pixel o %) of images (only for Image and Gallery fields)
  • height The height (in pixel o %) of images (only for Image and Gallery fields)
  • target The target of hyperlinks (only for Link field)
  • dateFormat The date format (only for Date field)
  • elements The number of elements per row (only for Gallery field)
  • render Render the value or label (only for Checkbox, Radio, Select and Select Multi field)
[acpt_user box='box_name' field='field_name']This shortcode render a user meta field.

20% Discount!


Use this code during check-out:

ACPT_2024_PROMO_20

Valid for all products*

*This coupon code is valid for all products and plans. The promotion expires April, 30th 2025 00:00:00 UTC

This will close in 20 seconds