Use pods to link to a related custom post type
Hi there,
I followed several of the tutorials about dynamic content within Brizy, but I can't figure out how to link between dynamic content.
For example, you want to list all the books that are written by an author, and you want them to have a url towards them (so not an external url, but an url to the custom book type).
I already added the field type "Relationship" but the related fiel of the other content type don't show up in my Brizy template.
How do I manage this within Brizy? Is there a tutorial available?
-
well wouldn't in that case a category do the same trick?
0 -
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> [/each]Hope this can be of some help to other people.
1
Please sign in to leave a comment.
Comments
2 comments