How to specify a certain amount of images queried, not all? October 15, 2022 by Tarik Billa Add a ‘posts_per_page’=>6 variable to the array that you’re passing to your get_posts query.