Archived topic
Custom Category Template with getting Posts by Tag
1 reply · Started by Jonas on May 17, 2021
Hi team,
My site has a custom post type with custom taxonomies "category" and "tags".
I would like to set up a custom category page template that shows:
Headline 1
-> all posts of the category with tag "tag1"
Headline 2
-> all posts of the category with tag "tag2"
Headline 3
-> all posts of the category with tag "tag3"
The headlines and the tags will be the same for every category page so they can be hardcoded.
Any directions of how to best achieve this?
Thank you!
Hi there,
if it has to be an archive template then you're into custom development and the use of Multiple Loops:
https://developer.wordpress.org/themes/basics/the-loop/#multiple-loops
Alternative is to create a static page, and use a plugin like WP Show Posts to output each of your lists.