Skip to main content
Pods - Dynamic Shortcodes

Discover how the Pods Dynamic Shortcode in WordPress can efficiently retrieve custom fields created with the Pods plugin.

Updated over 11 months ago

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

  1. 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.

  2. Custom Field with Specific Post ID

    {pods:custom_field_name@id=10}

    Obtains the 'custom_field_name' value from the post with ID 10.

Did this answer your question?