Using Shortcode to Display Series of Fields from Relationship Field
-
I’ve created a post type of “guest_appearance” which has a Relationship field named “listening_platforms” (in a field group of “podcast_info” if it matters). The Relationship field references the “platform_info” post type, which has fields of “platform_name” and “platform_url” (in a field group of “platform_info” if it matters).
I’m trying to display an unordered list of each of the Platform Names, linking to the corresponding Platform URL using the following shortcode. While it’s displaying the correct number of list items, each list item is just displayed text of “[listening_platforms.field=’platform_name’]” and links to “[listening_platforms.field=’platform_url’]”.
How can I fix this?
[pods name="guest_appearance"] <ul> [each listening_platforms] <li><a href="[listening_platforms.field='platform_url']" target="_blank">[listening_platforms.field='platform_name']</a></li> [/each] </ul> [/pods]
The page I need help with: [log in to see the link]
- The topic ‘Using Shortcode to Display Series of Fields from Relationship Field’ is closed to new replies.