One of the frequently asked questions in the various Bricks community sites is:
When viewing a single post (regular or a custom post type’s) I would like to show other posts assigned to the same categories/tags/custom taxonomy terms as that of the current post. How do I do this?
This is how:
In your posts query loop’s query settings
a) select your Post type
b) Enable “Exclude current post”
c) add a Taxonomy query like this:

You should, of course, select your Taxonomy and your terms dynamic data tag.
3 comments
Kevin Evans
Hello Sridhar,
I got this working on my page but for some reason it's not working for taxonomies that have commas in them, like "Cancer, Heart Attack, and Stroke" or "Dental, Vision, and Hearing" It displays fine for other Taxonomies without commas
It seems to be a security issue in WordPress tags. I see a solution at https://www.saotn.org/posts/display-commas-wordpress-tags where you add double "--" instead of commas in tax creation page but that doesn't seem to work. Do you know how to fix this?
Thanks
Sridhar Katakam
It is unusual to have commas in terms. Folks generally assign posts to multiple terms.
But I can see how it is a valid use-case. I'll test and get back.
Sridhar Katakam
Follow this new tutorial instead: https://brickslabs.mystagingwebsite.com/related-posts-by-taxonomy-in-bricks/.