Skip Navigation

[Resolved] Split: how to show related posts using the Blocks editor

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)

Author
Posts
#1488333

I need help in creating a view of Related posts.
I have created many to many relationship of 2 posts. Now I want to display the related posts with their own existing custom fields under the single post's view, using block editor.

how can this be achieved?

#1488433

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thanks for asking! I'd be happy to help.

The query filter for showing the related posts works the same way in Blocks views editor as in the classic views editor.
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

The only difference is in the position of that query filer option. While working with a view in Blocks editor, you'll see the query filter option in the "View" block's settings, as shown in this example screenshot:
hidden link

You'll create two post views, one for each post type and include a post relationship filter so that it shows the related posts from the other post type with "Post where this View is shown." option, as shown in the example screenshot.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.