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 a week 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@keyargs}
  • field: Name of the custom field or metadata to retrieve.

  • keyargs: A list of key arguments.

Key Arguments

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

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?