The Pods Dynamic Shortcode in WordPress is an advanced tool tailored for retrieving and manipulating custom fields created with the Pods plugin.
Syntax
{pods:field}
field
: a custom field name defined in Pods.
Key Arguments
id
(optional): Designates the ID of the post to retrieve data from. Default is the current post.{pods:field @ID=3}
Examples
Retrieve a Custom Field
{pods:custom_field_name}
Fetches the value of 'custom_field_name' from the current post, where 'custom_field_name' is a field created with the Pods plugin.
Custom Field with Specific Post ID
{pods:custom_field_name@id=10}
Obtains the 'custom_field_name' value from the post with ID 10.