How to make WP_Query ‘post__in’ accept an array?

$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.

Leave a Comment