Query to list all galleries under a parent post? August 12, 2022 by Tarik Billa I had to set the post type in the query. 'post_type' => 'gallery' Problem solved!