Skip Navigation

[Resolved] Display Posts of same taxonomy as the current post

This thread is resolved. Here is a description of the problem and solution.

Problem:
How can we create a list of posts all tagged with the same taxonomy term as the page or post where we insert the aforementioned list?

Solution:
You can set up a View (using the "Views" Block) and then in the Inspector of the block find the "Query Filter" (as seen in the screenshots here https://toolset.com/forums/topic/creating-a-qa-board/#post-1600557) add a new filter

Set the Filter to your taxonomy like I've chosen Categories, and then choose "Set by the page where this View is shown"

When you now complete the Loop of this View and show it on a Post it'll get the taxonomy of that post, and display only posts with the same taxonomy term

This is best used in a Content Template, which you can assign to a bunch of single posts, so you do not have to insert this View in each and every single Post.

This support ticket is created 5 years, 1 month 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by CarlyB2958 5 years, 1 month ago.

Assisted by: Beda.

Author
Posts
#1600221

Hi there,
I'm following this thread https://toolset.com/forums/topic/create-a-discussion-forum-using-toolset/ trying to make my own Q&A board that is related to categories. I've gotten to adding post type question and post type answers and linking them one to many.

but I'm a little stuck now. I want to then be able to show questions with the category 'aweber' underneath a single post that has the same category 'aweber'. How do I get only those questions with that category to show in posts with the same category. a bit deep in trying to understand toolset, very new to this!

Regards
Carly

#1600557
Bildschirmfoto 2020-04-25 um 18.42.02.png
Bildschirmfoto 2020-04-25 um 18.42.26.png
Bildschirmfoto 2020-04-25 um 18.43.22.png

You can set up a View (using the "Views" Block) and then in the Inspector of the block find the "Query Filter" (as seen in the screenshot) add a new filter

Set the Filter to your taxonomy like I've chosen Categories, and then choose "Set by the page where this View is shown"

When you now complete the Loop of this View and show it on a Post it'll get the taxonomy of that post, and display only posts with the same taxonomy term
This is best used in a Content Template, which you can assign to a bunch of single posts, so you do not have to insert this View in each and every single Post.

Does this help?

#1601967

thank you that makes sense I'll give it a go