Simply add the 'category__in' => $category_id_array
argument from your second query inside your first query.
If this doesn’t work, make a tax_query, with both kund
and post_category
taxonomies
Related Posts:
- Is There a Difference Between Taxonomies and Categories?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Control term order on a per-post basis
- How can I select a primary category?
- Does WordPress Offer a Way to Find All of the Categories that Don’t Have Children?
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display empty taxonomy terms with get_terms()
- List Terms in Category
- How can i insert term in a specific language of Polylang?
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Display Posts Loop for each parent and for each Child
- Is There a Difference Between Taxonomies and Categories?
- Get posts under a category with SQL
- get_terms function not returning anything
- Display custom taxonomy attached to the post on post single page
- Display sibling categories on category page
- Get WooCommerce product category list in functions.php
- outputting taxonomy hierarchy
- Display List of Categories Within a Custom Taxonomy
- get_adjacent_post_link excluded_terms ignored
- Why is my post categories not displaying?
- Problem importing categories and sub-categories
- Taxonomy term RestApi data 10 rows limitions
- hide_empty property not working when using get_terms
- get_categories for custom post type with a specific custom taxonomy attached
- Order get_terms() By Custom Field
- Could not insert term into the database
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I get category ID by category name?
- Programmatically create product category and add thumbnail in woocommerce
- How to order the get_categories result
- How to get next previous category in same taxonomy?
- Display only deepest category on a single post?
- Wrap a chosen category name with div
- Use get_term_children to get the sub category of a parent category for the current post
- Count argument in get_terms has no effect on ouput/doesn’t work
- Update wordpress post terms programatically
- List all custom post type posts from a given category?
- Get a list of Terms for a specific category
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- Update taxonomy value of post type in query
- How to query posts from specific authors and categories using WP_query?
- Display name of the last child category
- How to get category URL with the slug?
- How do I get a list of all categories that a given user has written blog posts for?
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Set post categories to include parents when setting child category
- Inserting Category programmatically
- Show Available Taxonomy List with Current Category
- Exclude a category from the_category in the single post page
- Display specific categories by ID
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- Custom taxonomy template for categories
- wp_dropdown_categories not showing option as selected
- Ive got a term (get_term_by) but now I want to filter it by a category it is in?
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- Count tags for a specific category
- Echo text using is_tag
- WP 4.7 in_category change?
- set terms to category and subcategory
- Get posts of a custom post type from category from taxonomy?
- Illegal string offset ‘taxonomy’ in
- Change categories count to include media attachments
- How to get selected taxonomy or category ID if using custom walker?
- Let user select their own category
- How to store category and tags separatly on wordpress?
- Setting selected term_id with wp_dropdown_categories?
- wp_delete_term or wp_delete_category?
- Update custom category fields front-end
- sidebar troubles, taxonomy trouble
- WP-CLI Add category as menu item main-menu
- Category post count is not correct
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- How do I edit the terms output args or array data?
- How can i change sort category view starting from child then parent, not alphabetically
- Can’t display posts by filtering categories using isotope.js
- How to remove parent category from child category url using wordpress rewrite rule?
- Bulk assign posts to a category using SQL (MySQL)
- Restrict retrieved terms by category?
- How to modify custom category field from front end?
- Confused about category.php template – not working
- Bulk Change WordPress category Slug
- Filter custom taxonomy posts via AJAX
- Why use hierarchical taxonomies instead of many custom taxonomies?
- Getting a sub category based on a category name
- How to Manage and link certain custom taxonomy?
- Display Taxonomies in loop with template args
- Match two taxonomies to display a specific content
- Display only the latest post
- Return selected categories only in custom page meta box?
- get IDs from links categories
- Multiple Parent Category URLs
- Chained drop-down menu for custom taxonomy using chained.js
- Display only one level subcategory in wordpress
- Converting Categories (with ACF fields) to custom taxonomies
- get_category_children/ the new get_term_children not work
- Quick Edit on taxonomy names results in error