I am using query_post to get few posts of some author, the code is like this,
query_posts(array( 'author' => $author_id, 'paged' => $paged, 'posts_per_page' => $posts_per_page, 'post_status' => 'publish', ));
The function having this query is registered as follows:
add_action('wp_ajax_infinite_scroll', 'wp_infinitepaginate'); add_action('wp_ajax_nopriv_infinite_scroll', 'wp_infinitepaginate');
For admin this query works properly. But for not logged in users, php function having this query gets executed but the query returns empty array.
If I disable 'Role Scoper' the query_posts works for not logged in users also. How can I fix this problem