Query loop: showing same category as current post
-
Hi there,
Currently I am trying to set up the query loop in the template for my posts. Within the query loop you can select one or more categories via the taxonomies. That is clear to me. However, ideally I want that when I view a post, I only see the other articles from the same parent category.
So for example I have a post within my category Productivity, then at the end of the post I want to see 3 articles that are also from the Productivity category and not from the Time Management category. And when I go to a post from the Career category, I want to see other articles from the Career category and not from Productivity. This query loop I want to include within the template, so I can avoid that I need to add this to the post itself everytime I create a new one.
Is there a way to set this up? I am no expert in coding – not at all… Hopefully someone can help me with this. Thanks in advance!
- The topic ‘Query loop: showing same category as current post’ is closed to new replies.