Exclude Child Posts from WP_Query April 11, 2022 by Tarik Billa use 'post_parent' => 0 in WP_Query to return only parent posts