I faced a similar problem, answer is linked below, and it turns out Template Filters do the trick!
Related Posts:
- How to make child categories recognize parent’s template displays
- Different template for subcategories
- Different templates for parent and children categories/taxonomies
- is_archive() content being shown instead of is_category()
- Which php file lists all the post of a category
- Display Categories, Sub-categories, and Sub-sub-categories on separate pages
- Category-slug.php not being used
- Categories overview that links to page displaying posts
- What Must to Display the “mysite.com/category” URL?
- Custom Archive Template for Multiple Categories
- Different template for subcategories
- Use different file includes for single.php
- Most efficient way to have 1 template for parent, 1 template for child categories?
- Template files not working for archives and categories
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Gutenberg editor add a custom category as wrapper for custom blocks
- Most recent post from every category/taxonomy but sorted by date
- Category Archive, list subcategories of each post
- Disable pagination only for specific category
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Check if post belongs to any category
- How to add categories to products in woocommerce programatically? [closed]
- Is there a plugin that will completely remove the category system?
- How to get only the last child of category slug?
- Remove Parent Category from Child Category URL
- Multisite – create a category in specific site
- How do you remove display of WooCommerce product category on single product page?
- Allow users to post to a certain category
- Show recent posts in menu?
- Convert the default sub-category dashes to bullets or any other characters
- Link Attachment Image to Category
- Modify WordPress SQL Query to pull from within a category
- How can i insert term in a specific language of Polylang?
- How to retrieve more posts from a custom post type that are in the same category as the current post
- WordPress Get Posts from each category equally
- Category name field strips HTML tags. How can I reverse this?
- Same base for category and post
- Get all media categories
- Custom taxonomy/category order
- Custom SQL Query: Get all posts with category id and a concated list of tags on each post
- Add tag parameter to category.php
- Check IF category_description exists
- wp_list_categories with show_count, except for specific categories
- Remove Archive | from Categories
- Showing Categories for Page Edit – without plugin
- Difference between wp_list_categories and get_categories
- Using categories with pages
- Show next post in same category but start from the latest
- Only first category!
- How could I write a get_categories_by_year() function?
- How to add icon over specific thumb
- add_settings_field (exclude categories->reading) wp_category_checklist
- Retrieve post tags from from main wp_query
- Listing Post Categories on Home Page
- How to add meta description, keywords, custom title to a category template
- User level categories
- Exclude category from drop down list form
- How to set the same base url for two different taxonomies?
- Hide category name but show posts
- Programmatically Create Category and sub Category and sub sub Category
- Parent Category and Subcategory default text generated with category
- How to create a table with counts of category combinations?
- How to get the_category(‘, ‘) with link “title” attribute
- product_cat image url from database
- How to get the term id inside the start lvl method of category walker?
- Multiple if statements with else for get_the_category [closed]
- Most efficient way to display current post subcategories?
- Using a template page parent breaks page
- How to Query the Top 5 Posts of a specific category?
- Setting category for post as default
- How to add a post with new Taxonomy without assigning to default category?
- Query post only from categories that have subcategories
- How to get the link of all categories
- foreach,having wp_query inside, breaks after showing one result
- Display a category name automatically using code in the functions.php file
- How to load jquery tag-it plugin into admin?
- Include Category Description in search result
- not empty categories don’t show in menu [closed]
- Show parent-child relationship for categories in the wordpress admin
- How to assign different categories to pages in wordpress?
- All post of child category not in top category
- How to add a tag above a category post that displays the category name in WordPress
- Woocommerce – Display product category of product in Orders page
- How to show video from wp option value?
- Changing Woocommerce categories programatically
- Add an Exclusive or featured tag line to article titles
- How to link ACF relationship field to the new Query block in Full Site Editing
- Order Categories by Character Count
- Remove “?category=” in the URL wordpress ajax filter work for category
- Categories are not showing up according to the hierarchy
- Remove “All categories” from searchbar dropdown
- Get categories by title descendant
- Hide categories from authors
- Update/change category of a post when it’s been inactive for a certain number of days
- category_count gives wrong number of posts in category
- Sort Category Archive pages and place sticky posts first
- Add custom fields to Woocommerce Category Page
- wordpress category rewrite rule with pagination
- Can’t create tags or categories
- How to make /category/ URL load properly instead of 404 error?