My workaround at the moment (and it’s not really ideal) is that I’m using to loop to go through all posts and then storing the post ID in an array by using get_the_ID(). I then pass that off to my function that does the query and then use the post__in argument to get those posts. I also have to add this to the functions.php file
if ( $query->is_author && !is_admin() ) {
set_query_var('posts_per_page', -1);
}
add_filter('pre_get_posts', 'change_wp_query_size', 999);
That just ensures that I pull all posts from that author in the loop as the default is 10.
Not ideal, but it’s working right now. Hoping that they will fix this in a future release.
-
This reply was modified 6 years, 5 months ago by tinytim84.