You have a couple hurdles to handle …
1) You can have multiple Category codes for each post, so they are not normal query variables (not really a hurdle – but you may get repeat occurrances of the same post under multiple categories).
2) Category titles are 1 linkage ‘further’ away (in terms of SQL queries) than the category code. i.e. the post is connected to the Category code(s), then those codes are connected to the code titles. This is more of a challenge.
THIS POST shows a similar issue with a solution of getting all the categories, then running a filtered query for each category, and displaying the post list for that category. Perhaps that is close enough to what you are looking for?
Related Posts:
- Counting number of posts with Category B in Category A
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- How to get posts by category and by choosing a taxonomy term?
- get_the_terms has strange result since version 6.0
- query_posts problem – need help
- get_posts with multiple categories
- How to filter by category in REST API, excluding posts also in other category term?
- How to order category.php loop by ‘meta_value’?
- Custom archive page based on array of categories and tags
- How can I display recent posts from a particular category in my header?
- Sorting Posts by custom field
- Querying by taxonomy vs Querying by Custom fields Speed Comparison
- WP Query with multiple categories – passing an array works?
- WP_query category__in not working, only pulls from first category
- tax_query shows no results if nothing is selected
- How get posts from a subcategory of a category by name?
- How to Modify Taxonomy Archive Page with Search Parameter?
- Get array of current post term ID’s
- Show Post Count of a Category
- Get image of latest post from taxonomies/categories
- How To Remove/hide some specific categories from two different categories widget from sidebar
- Display link to taxonomy archive only if it has posts with certain custom field values
- WP_Query, tax_query and term_meta: How to?
- WP_Query arguments to fetch custom post type posts which are in certain category?
- How do I reset this wp_list_categories query?
- How to get count of posts assigned to given category?
- How to show subcategories using loop?
- Getting Taxonomy inside WP_Query Loop
- Remove a specific category ID from related post
- Order posts by taxonomy count
- Complex Category selection as per user input
- Five posts from a category in footer
- How to get all unique categories for posts in loop?
- Display Featured Post by Categories and Avoid duplicated posts
- category query for pages not working
- How do I exclude the lowest level terms in a taxonomy?
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- Check if loop has any categories?
- WordPress query with items from more than one selfdefined taxonomy as `term` argument
- How to display an other custom post type in a different custom post type’s archive?
- wp_query args adding muitiple tax_querys
- Inserting HTML to close and open divs in WP_Query loops
- find posts that don’t have a custom taxonomy
- WP the_posts() on single-cars.php get category link
- Finding WordPress Posts assigned to multiple categories
- get all posts associated with a custom taxonomy
- How to set an alternate posts_per_page value for default queries in different templates
- Combine results of multiple WP_Query to resemble single WP_Query
- WordPress Custom Search Form Displaying Unexpected Results
- How to add custom meta to ‘pre_get_terms’?
- Tax Query only returns for the first of several terms
- Can’t fetch Custom Post Type Data through Custom Query
- wp_query is showing posts from other categories
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- One WP_Query that always shows 1 post from category X and 1 post from “not in category X”?
- How to print term name inside wp post loop
- How to display a list of posts in same child category as current post
- How to exclude a category name from showing?
- Loop categories by recent post
- What is wrong with my WP_Query Arguments?
- Query Taxonomy By Page Title
- I need to exclude from a query a category and a few custom taxonomies
- How to display posts from custom post type category(custom Taxonomy) wise?
- Related posts by current posts child category
- Why is my pagination /page/2 taking me to index.php?
- Filter products on category AND tag
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- Filter for each loop when WP_Query has no posts to show
- How to use the Term Object from a custom select field in a query
- How do I stop the same post showing multiple times in a archive?
- WordPress – Form does not filter the results of taxonomies
- WP Query for all events prior to current date
- How to get taxonomy image attached to a Post Type WordPress
- list all post who have mutual taxonomy as current taxonomy!
- Display All Top Child Categories / Taxonomy
- Query post by Category and custom file (ACF)
- Show one post of each custom taxonomy
- Displaying posts from sub taxonomies only
- Taxonomy archive, categorised by other taxonomy, not hiding empty taxonomies
- Filtering ‘Featured’ posts from a batch of category IDs
- Show posts from categories instead of tags
- How to define a custom hierarchy for terms?
- My entry results are not consistently alphabetized
- Adding additional taxonomies to wordpress taxonomy page
- I cannot get tax_query in get_posts() to work with custom taxonomy
- Query Top Set Custom Taxonomy In Given Timeperiod
- Retrieving category pages from subcategory returns empty sets
- Custom query for tag and custom tag from 2 post type
- query.php – multiple is_category functions
- Create multiple sections for all categories and then queries all the posts for each of those categories
- Hiding all posts/products/pages from a site based on a custom taxonomy/domain name
- Filter posts by category
- List categories using WP_Query
- Give attachments an archive page, and exclude unattached ones
- Advanced Search – Is this possible?
- I’m trying to get posts under a custom taxonomy but I don’t know what I’m doing wrong here
- Pagination only showed when no category is set in wp_query
- taxonomy-{term}.php terms pagination returning 404 after a certain page
- Using WP Query, I want to include all posts in category 1 as long as they are not also in category 2
- Display Featured image from custom post type category (custom taxonomy) wise