How to display images that was uploaded in the media gallery and not by the current post? October 12, 2022 by Tarik Billa Changing 'post_parent' => $post->ID to 'post_parent' => null will fetch all images.