I have two different sections that share the same category group that I want to display both on browser at the same time only if the category is the same. Doing that in Craft CMS is possible?

Thank you.

  • 1
    Can you please add more details to your question? Are you trying to create a related entries view that searches by category in two sections? Is this on a single entry view or an overview entry listing page? Apr 16, 2019 at 22:32

1 Answer 1


Yes. It is possible, you need to specify the craft category and set the group parameter on it and fetch the categories with .all().

{% set categories = myCategoryQuery.all() %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.