Broken? WP_Query and “attachment” as a post type
I have a gallery attached to a page. On that page, I’m running the following query: $events_gallery = new WP_Query( // Start a new query for our videos array( ‘post_parent’ => $post->ID, // Get data from the current post ‘post_type’ => ‘attachment’, // Only bring back attachments ‘post_mime_type’ => ‘image’, // Only bring back attachments … Read more