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
Retrieve a Custom Field:
{metabox:custom_field}
Fetches the value of 'custom_field' from the current post, created using the Meta Box Plugin.
Specific Post's Custom Field:
{metabox:another_field@id=123}
Retrieves 'another_field' custom field value from the post with ID 123.