Add category to my get_post query August 25, 2022 by Tarik Billa Did you try $query = 'posts_per_page=3&cat=3'; ?