I found my issue was that I was using the term as the taxonomy, which brought me all posts under the taxonomy and not the category(term).
This was a quick fix, I just wish I would have caught on to it last night:
$args = array(
'post_type' => 'restaurant-menu',
'tax_query' => array(
array(
'taxonomy' => 'menu-category',
'field' => 'slug',
'terms' => $term_name
)
)
);
Related Posts:
- set object terms after some some time of published post – functions.php
- Append taxonomy terms as class names in markup?
- WP_Query search posts by custom post type and custom taxonomy
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Different Category system needed for the Custom Post Type
- Loop increase number
- Different options per post type in WP_Query
- Custom post type and custom taxonomy 404 on page 2
- Using Wp_Query, Json to add Highcharts series data
- Function to erase every post from a taxonomy
- update custom taxonomy custom fields
- Check that a slug is present in the get_terms request
- Assigning categories to custom post types via a front-end form; only works for native post type
- Change Search display for Custom Post Type
- Custom Taxonomy – fields
- The most recent post of custom taxonomy
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Values inside a custom field to determine which category posts to display
- Custom Loop for custom post type. Compare by meta_value?
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- Exclude a category from WP_Query
- Get Custom Taxonomy ID within loop
- Select All in Parent Category, Group by Child Category?
- get_query_var() not working in pre_get_posts
- query multiple taxonomies
- Get custom post type by category in a page template
- Categories under custom post types doesn’t show properly
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- Sort the main query in subcategories/terms?
- Custom Taxonomy List links being re-written
- Want to filter only parent post in admin area
- Custom Taxonomy and tax_query Issue?
- Custom post query by taxonomy
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Show Post Count of a Category
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom Post Types relationships
- Group custom posts by custom taxonomy names
- How can i skip same post from taxonomy term?
- Insert HTML inside link in a walker
- Remove standard meta boxes from custom taxonomy
- What’s the difference between same wp functions get_posts(); functions in different form?
- Wrong request query on cpt and tax
- Can I list a custom post type within another custom post type in the admin area?
- Search / Filter posts on Title/Content OR Tags
- Custom loop with multiple taxonomy queries
- Set URL link to featured image of custom post type
- AJAX load more for different custom post type loops
- On update or create post redirect to current post position in list
- Custom taxonomy rewrite give pagination 404
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- What’s the WP way to load remaining custom posts?
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- How to have this permalink structure: post_type/postname/custom_inner_page
- Advanced search form with filters for custom taxonomies
- WP the_posts() on single-cars.php get category link
- tax_query not working in template
- Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()
- categories should be available across all custom post types
- How can I group posts by months and years?
- Creating two loops based on different logic
- WP_Query parameter conflict
- Show current custom taxonomy
- Show message when query has no posts
- How to show all taxonomies within custom post type loop
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- post_content is stripping HTML when adding a new post? [closed]
- Template code to split a post and print a custom field?
- Query Posts that have Custom Taxonomy
- List all Custom Post Type posts excluding certain Taxnomy term
- Query custom posts from custom taxonomy
- Query Custom Post Type by Taxonomy
- Post type Echo code is repeating on homepage
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- Title and URL Error in Breadcrumb Navigation for Custom Post Types
- custom post type and a “sticky” position taxonomy
- Display post count for a specific month
- WP_Query to display number of custom post type filtered (order by) taxonomy
- Live search by custom tag
- Show parent category and subcategory once in while loop
- Ajax load more inside custom post type taxonomy
- How to get the posts that my following users are liked?
- WP Query tax_query not returning posts
- Create a custom wp_query from a specific custom post type with specific taxonomy
- Show tags of custom post types in WordPress
- Display all Custom taxonomy terms and their relevant custom posts
- Query pulling all taxonomies, not one I am specifying
- can’t see categories in appearance-menu-categories
- CPT Efficient way to display posts from different categories with custom query
- Get archive of posts separated by taxonomies and subtaxonomies
- Query Pulling the same post twice
- WP Query WordPress Post Type with the same Taxonomy name
- How to list groupings and keep pagination
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How to Get The Taxonomy Term in Custom Post Type Loop Inside a Wp Query
- display custom post type from register taxonomy
- WP Query – Can’t get posts with specific taxonomy