Skip to main content
All CollectionsDynamic ShortcodesFeatures
Meta Box - Dynamic Shortcodes
Meta Box - Dynamic Shortcodes

Discover the Meta Box Dynamic Shortcode, a powerful feature for accessing custom fields created with the Meta Box Plugin in WordPress.

Updated over 11 months ago

The Meta Box Dynamic Shortcode is specifically designed for WordPress sites utilizing the Meta Box Plugin. It efficiently retrieves custom fields and metadata associated with posts.

Syntax

{metabox:field}
  • field: Name of the custom field or metadata to retrieve.

Key Arguments

  • id: Specifies the post ID for metadata retrieval. Defaults to the current post if not provided.

    {metabox:field @ID=3}

Examples

  1. Retrieve a Custom Field:

    {metabox:custom_field}

    Fetches the value of custom_field'from the current post, created using the Meta Box Plugin.

  2. Specific Post's Custom Field:

    {metabox:another_field@id=123}

    Retrieves another_field custom field value from the post with ID 123.
    ​

Did this answer your question?