Is this what you are looking for?
$query = new wp_query($arr);
$arr = array(
'author__in'=> array(2,4,6), //Authors's id's you like to include
'posts_per_page' => '12',
'paged' => $paged,
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'id',
'terms' => array ( $cat_ids ),
)
)
);
Related Posts:
- Combine two taxonomies in a hierarchical tree
- Get all categories and posts in those categories
- How to display non-hierarchical taxonomy as terms with checkboxes?
- get_categories for custom post type with a specific custom taxonomy attached
- Could not insert term into the database
- Group WP_Query by category
- Weird behaviour when adding terms/term_taxonomies programmatically
- How can I select a primary category?
- WP_Query not looking at child category
- Excluding posts from a category but only if they’re not in multiple categories
- How to Override default update_count_callback for category
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display one latest post from multiple categories
- List all custom post type posts from a given category?
- How to get the number of child categories a specific parent category has?
- How can I convert some categories to a custom taxonomy?
- Any way to assign Post Categories and Tags to Links?
- Display name of the last child category
- How to export/import categories and keep their IDs?
- How to use wp_category_checklist()?
- Get all sub-categories of a parent category
- How to view WordPress’ default category IDs?
- Random taxonomy category list
- Change existing taxonomy settings when using custom taxonomy
- Enter a variable in the ‘category_name’ parameter
- Show Available Taxonomy List with Current Category
- category filter doesn’t work in WPML
- Exclude a category from the_category in the single post page
- Why does the argument list_only do on Walker_Category_Checklist::start_el?
- Filtering *out* a taxonomy from the admin post list
- category image taxonomy
- Drop posts from categories in MySql
- Customize category page for different custom taxonomies
- How can I improve this taxonomy treating approach?
- Get posts under a category with SQL
- Redirect to another page using contact form 7? [closed]
- Display custom taxonomy attached to the post on post single page
- How to display parents category and child category separately for a specific post?
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- Display posts from a category
- Custom loop of a single category, cannot order by date. What am I missing?
- category__not_in and id values from variable
- How to display a value inside a post with a specified category from a category custom field? [closed]
- Echo text using is_tag
- How to echo woocommerce category name
- Grandchild Term Things Grandfather Term is It’s Parent
- WP 4.7 in_category change?
- Get posts of a custom post type from category from taxonomy?
- Illegal string offset ‘taxonomy’ in
- Same menu for different taxonomies to reach different content
- Change categories count to include media attachments
- How to get selected taxonomy or category ID if using custom walker?
- Show multiple categories in query using redux framework variable
- Are term_taxonomy_id and term_id the same? [duplicate]
- Let user select their own category
- How could I write a get_categories_by_year() function?
- Retrieve post tags from from main wp_query
- Get posts in a subcategory of a chosen parent
- new WP_Query issues
- Natural sort / ordering wp_dropdown_categories
- the_category() doesn’t working in wp_query loop
- Best way to categorize/populate a magazine style layout
- sidebar troubles, taxonomy trouble
- Displaying posts of given category
- Use get_cat_ID to retreive multiple category IDs
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- Automatically adding tags and categories into Post Excerpt for searching
- How can i add service category here? [duplicate]
- Show subChild categories
- WordPress 5.4 and higher: Filter posts by category 1 AND category 2 in API requests
- How to set the same base url for two different taxonomies?
- Limit categories to hierarchal depth of 2
- Show the parent taxonomy by creating shortcode in woocommerce?
- WordPress Portofolio Conditional Templating – functions php
- Parent Category and Subcategory default text generated with category
- Get WooCommerce product category list in functions.php
- Post List by category and under custom taxonomy
- Confused about category.php template – not working
- Create duplicate category page with content variations
- Renaming default category taxonomy?
- How to Manage and link certain custom taxonomy?
- How to add a post with new Taxonomy without assigning to default category?
- category__and works, but why?
- foreach,having wp_query inside, breaks after showing one result
- category_name not working in WP_Query
- Problem importing categories and sub-categories
- WP_query exclude a category unless it has more than one catagory
- Multiple Categories under one URL, where ‘Front Page’ is used already
- list taxonomy based on taxonomy
- get IDs from links categories
- Multiple Parent Category URLs
- Show parent-child relationship for categories in the wordpress admin
- Narrow Down a Shop Page Results Based on a Product Tag in WooCommerce
- Converting Categories (with ACF fields) to custom taxonomies
- Trying to WP_Query a category
- Taxonomy term RestApi data 10 rows limitions
- Order Categories by Character Count
- Images as Categories
- Limit authors on specific catogories
- Quick Edit on taxonomy names results in error