It needed to be the following:
'category__in' => $categoriesIds,
with 2 underscores instead of one.
Related Posts:
- Manipulate post category after time
- prevent showing posts of an specific category in admin posts section
- How to add an admin notice upon post save/update
- Including categories in search results
- Different post sort order within different categories
- How to add metabox for post of specific category
- Convert custom fields to post categories
- How to get Category Id from Post Id ?
- Query posts from current year
- Exclude category on blog list page
- Cannot access current post’s ID in custom plugin
- Set number of article per number of page
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- WordPress Child Category Display All Posts
- Do I use custom post type or something else?
- Limit function to specific post category
- Display posts in alphabetical order for a particular category
- How to make search for the custom post type?
- How to display related posts by subcategory and not parent category
- Category Template: Need to display different content on first page of archives
- How to automatically apply a category based on the post title?
- Direct link to “New post” in specific category?
- Using permalinks, category slugs, and tag slugs
- How to limit posts by category
- How do I retrieve then print the currently viewed sub categories?
- Get attachments for posts that belongs to a specific category
- How can I setup a relationship using categories in WordPress?
- Related posts by category not working right
- How to list recent posts in a wp nav menu?
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- Listing Specific Categories from Current Post with Depth
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- Redirect to another page using contact form 7? [closed]
- get_the_category listing in hierarchial order
- why does wordpress ignore the post args?
- Filter Hook for post table (not columns)
- Sort by last word in title
- Give posts a particular template based on the assigned category
- Show posts on front page only
- Post-Archive like a page in a specific subdirectory
- Post is in descendant category not working in home.php
- How can my plugin display a populated new post window
- How to get posts ordered by using their categories?
- Hide parts of the post content after typing it’s name or searching it by category
- search content of pages and list in wp-admin
- SQL Bulk Move old posts by one author to another category
- How to display only one category in a custom post type?
- load more posts by category
- Get only X number of categories
- Display Related Posts by Category in Random
- inserting a category into post
- Getting posts from some categories plus some individual posts
- Change layout of post depending on category
- Insert specific information to a posts of a predefined category
- How to show beneath posts the full category path?
- latest post showing up twice on posts page
- wp_list_categories() Exclude All Categories Except One
- How to Show Category List With Corresponding Links?
- Display Current Posts Category (with the most posts)?
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Display default matabox of posts(add category) wordpress
- ACF date picker to trigger category change
- Get category slug of the Parent category of a Product
- How to get tags when using publish_post
- exclude particular category in api
- How do you change the permalink for posts for a single category?
- Make categories appear random
- Exclude posts in a category on one page but show those posts on a different page
- Excluding category from post navigation in WordPress?
- How to make a page show posts only from specific categories without editing php files
- Get posts from category from custom query
- How to show posts ordered by random [duplicate]
- How to Get Position of a Post from a category and tag
- Display new posts categories in separated divs
- Querying posts from current category, using a variable as array argument
- Add Categories To Custom Post
- Query posts from newest category
- Precedence of page permalinks over woocommerce product category links?
- Display Posts by Categories
- Ajax – Post Categories and Load More
- Need help writing loop to display posts by categories in separate divs
- Edit Posts Page but not category specific pages?
- Add category selection to function request
- Query post category & remove any post id
- Admin Post List Only Show One Category
- Multiple Post Repeat for Related Post Loop by Category
- Show Post number of specific Category
- Same sidebar in all posts as in the category
- How do I list categories and the common categories for posts beneath those categories?
- how to show posts on different pages if number of post per page is one
- Is possible to create a custom link that creates a post that’s already categorized?
- Is it possible to have different header style blog titles in different categories?
- Category pages vs single post pages
- How to display subcategory articles in the category view?
- How do we display a certain category type on a page while hiding all others?
- Onclick open posts displayed in slider in a popup [closed]
- View post with specific category id and name which I selected in the backend (drop-down option)
- How can I fixe the article title problem?
- Automatically select category based on user role
- Filters do not work when there are multiple (one works)