Archived topic
Recent Posts based on Categories
5 replies · Started by Claudia Syanny on October 21, 2022
Hi
I'm using Tasty theme and I created 3 categories on the main menu. How do I make it show recent posts based on categories? Right now each menu show all recent posts.
Thank you.
Hi there,
when you add a Category to a Post(s) then WP and GP will generate the Category archive for you.
Heres an example URL of one of those archives on your site:
https://butterjoykitchen.com/category/traditional-snack/
When you edit your menu, replace your menu items with the Category links.
Hi David,
I tried posting a new article under Baking category. It also shows in Traditional Snack category page and
this post (Purple Yam Steamed Cake) also shows in Baking category page.
How to separate each article based on category?
Thanks.
Edit the Post, and in the post sidebar select the Category you want it in:
Hi David,
I did what you suggested. However, the Marble Cake recipe which should be in Baking category still appear in Traditional Snack page and the Purple Yam Cake still appear in Baking page.
Is there something I missed?
If you visit the actual Category Archive pages then you will see the correct posts:
https://butterjoykitchen.com/category/traditional-snack/
https://butterjoykitchen.com/category/baking/
The pages you're viewing eg.
https://butterjoykitchen.com/traditional-snack/
Are Static Pages that are display a core Query Loop block.
If you want to continue using those static pages, then you need to:
1. edit the page
2. select the Query Loop block
3. in the Block settings > Filters - select the relevant category for that page.
Alternatively don't use the Static Pages, and just create menu links to those archive pages i shared above.