Hi there, I have a post relationship between two posts and im currently setting up the content templates. Im trying to include a dynamic button that links to a child post based on relationship however i cant work out how to link it to the relationship post? When i click on the button and choose dynamic link, it only gives me the option of current post or another specific post.
Hi,
It seems that our chat was disconnected, so I've moved the conversation to the support ticket.
To show any information from a related post, you'll need to first create a post view in your content template and set it to show the post type that is the related post in the relationship.
After that, you can set a query filter in your view to show only those posts which are related to the current post whose content template is being used.
In the case where only one related element is involved, you can use the "item" attribute in the "Fields and Text" block with the shortcodes to show information from that related post:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/
However, if you need to show data using the blocks, then you'll need to change the scope of the current post first to the related post, through a content template or a view and then you can use the blocks inside it with the "current" post-selection.
regards,
Waqar