Skip to main content

Use pods to link to a related custom post type

Comments

2 comments

  • Chris Bernecker

    well wouldn't in that case a category do the same trick?

    0
  • Matthias Breynaert

    Well, I figured out with the help of the Pods author, Jim True.

    Since those relation ship fields don't show up in Brizy via #..., you need to add a shortcode and try to style it as good and as bad as possible, since that is small pitfall of Brizy.

    Also, one single pod item within a direct shortcode doesn't work in Brizy, so you should add a shortcode to pull in a single pod widget, where you can pull in the related books in this example.

    In the pod template, you can add this:

    [each related field name]<a href="{@field you want to call.permalink}">{@field you want to call.post_title}</a>&nbsp;&nbsp;&nbsp;[/each]

    Hope this can be of some help to other people.

    1

Please sign in to leave a comment.