I've created a page and added a media gallery to it, but the media gallery doesn't display.
I think it may be related to my using WP Read-Only, which stores all my images on S3 (because I'm on Heroku). WP-Read Only doesn't run into any identifiable issues-- I can upload and crop just fine. So maybe it's not the cause of the media gallery not showing.
Here's the shortcode output:
Here's the HTML in the content div on the media page:
<div id="content" role="main"> <article id="post-29" class="post-29 page type-page status-publish hentry"> <header class="entry-header"> <h1 class="entry-title">Media</h1> </header> <div class="entry-content"> </div><!-- .entry-content --> <footer class="entry-meta"> </footer><!-- .entry-meta --> </article><!-- #post --> <div id="comments" class="comments-area"> </div><!-- #comments .comments-area --> </div>
I'm using WordPress 3.5.2. The only plugin other than WP Read-Only I have installed is Akismet.
Update: I dug into the
gallery_shortcode function in wp_includes/media.php, and the issue is that
get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); is returning an empty array so it returns nothing:
if ( empty($attachments) ) return '';