Skip Navigation

[Resolved] Related post not available as a dynamic source

This support ticket is created 4 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 4 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#1864381

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.

#1864411

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