Get array of posts from the current archive page loop

That’s pretty easy. All you need is this:

global $wp_query;
$my_posts = $wp_query->posts;

Leave a Comment