$access_ids
is a string. post__in
accepts an array.
So instead of $access_ids you could use 'post__in'=> $ids
skipping the $access_ids = implode( ', ', $ids );
all together.
Related Posts:
- Query posts only with featured image
- why ignore_sticky_posts in sticky post query
- get_query_var function not working at all
- get_query_var( ‘paged’ ) not working outside of homepage
- How to get order of posts?
- Given a WP_Query, how can I get a list of tags?
- Executing Queries in tag.php
- Get list of posts which have at least one term from a custom taxonomy with WP_Query
- WP_Query meta_query by array key
- Trying to list out child pages with WP_Query
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Intentionally exceed max_num_pages on main query without getting 404?
- Pass the same object to multiple widgets in a template with one query
- Get rewrite result
- Why execute the_post()?
- Count total number of post in foreach loop
- WP_Query not retrieving by random order under parent
- Get images only if parent status is publish
- ACF Relationship + WP Template Parts
- How to change posts order on Category and Tag archives?
- Using WP_Query and WP_Meta_Query Outside of WordPress
- Create a sitemap without a plugin – get parent pages only?
- WP_Query on custom field and order results
- Set Transient does nothing
- Get amount of CPT with a certain custom field value
- query offset countdown by 2 each day?
- Get ONLY the number of results in a query
- Display custom field meta outside loop, site wide
- How do I make a meta_query OR relation work? [closed]
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Filter posts in category archive page by year using a dropdown
- Show post number in widget loop
- Extend product search with meta in WooCommerce
- Woocommerce – Changing the order of the upsell products [closed]
- Custom Query by Author field and meta
- Custom wp_query for related posts with cmb2
- Include data from custom table in WP_Query
- Query posts by last comments
- WordPress ignoring LIMIT / posts_per_page despite being in wp_query
- twentyeleven_content_nav hook no longer outputs navigation link after 3.5 upgrade
- Better wordpress attachment query than this
- How to number the posts (ie #1, #2, #3) in a wp_query?
- Does wp track views for posts?
- How can I check for a thumbnail in WordPress?
- WP_query exclude posts of a format
- Can’t sort custom post type by random
- WP_Query gives me different results depending on the category order
- Make a SQL query with wpdb in WordPress
- post_type argument not working correctly with WP_Query
- Use WP_Query or query_posts() or get_posts() for optimizing a site?
- how to get wordpress user id when user register
- WP query is calling get_userdata and throws error [closed]
- How to set up hierarchical relationships without using plugins / meta query
- 2 column recent post query not respecting float right [closed]
- Meta query compare for ID’s greater than specific ID
- WP_Query meta value order is not working
- WP_Query->request has a limit
- Add parameter to first post only
- using nav menu id’s
- Ignore image urls in wp_query search
- Single post – display list of all posts + specific post
- Performance concerns: index.php vs taxonomy-$taxonomy.php
- Why does apply_filters behave different inside and outside a loop?
- Modify output of custom loop using WP_query
- What’s wrong with this wpdb query?
- The Events Calendar, wp_query returning event date not published date
- meta_query where the meta value is not the post title
- Elementor posts custom query based on tag [closed]
- How do I use multiple similar queries with WP_Query on the same page?
- WP_Query order by multiple meta keys & fields
- WPQuery Date and ACF
- Is WP Query skipping to check next post when an argument is not met?
- meta_query is overriding default search
- Custom Woocommerce Product Query
- How can I write a WP_Query that is this specific?
- Pagination inside the blog page not working
- How to restrict add media library only to images of the same post family?
- How to query most recent post for each author?
- Custom Query Pagination not working on static front page
- Post Template Query with WP_Query?
- How to create URL parameters to run custom queries?
- Wp Query sort order
- Adding additional taxonomies to wordpress taxonomy page
- why doesn’t this pre_get_posts code work?
- Query Top Set Custom Taxonomy In Given Timeperiod
- Custom taxonomy and query multi conditions
- Best way to Order Post in Home without a plugin
- Retrieving category pages from subcategory returns empty sets
- WP_query issue with no posts
- How to get query results for the next page
- wp_query in form method of widget breaks customizer
- Featured image not showing on page
- Add filter to Orderby Parameter using Array
- Iterate through ID’s in loop
- Multiple loop for “featured” items returns wrong posts
- Get WP_Query query after execution?
- Query string form $_GET[‘value’] is not working as meta value in wp_query
- query_posts problem – need help
- 294 Queries on Mainpage of WordPress
- Pagination on custom post type not working