Gallery issues.

This support request was posted in BBQ by fleacircus

Request ID #932 Resolved
  • I understand how to use the Gallery but it simply doesn’t work. I’ve confirmed the media is attached to the gallery page and the page is using the correct template. I have set the cache permissions to 777.

    I still get “There are no images for this gallery”.

    I’m running WordPress 3.5.1 with no plugins or significant customizations. Enabling debug for WordPress shows no errors.

    Dumping the contents of the $attachment array gives:

    Array ( [114] => WP_Post Object ( [ID] => 114 [post_author] => 1 [post_date] => 2013-03-01 19:42:35 [post_date_gmt] => 2013-03-01 08:42:35 [post_content] => [post_title] => gallery-test [post_excerpt] => [post_status] => inherit [comment_status] => open [ping_status] => open [post_password] => [post_name] => gallery-test [to_ping] => [pinged] => [post_modified] => 2013-03-01 19:42:35 [post_modified_gmt] => 2013-03-01 08:42:35 [post_content_filtered] => [post_parent] => 109 [guid] => http://brotheralec.com/wp-content/uploads/2013/03/gallery-test.png [menu_order] => 0 [post_type] => attachment [post_mime_type] => image/png [comment_count] => 0 [filter] => raw ) )

    There are no images for this gallery

    Ugh, nevermind. I just noticed the line

    if ( !empty( $attachments ) && ( count( $attachments ) > 1 ) ) {

    It works if I add more than 1 image to the gallery.

    Juanfra Aldasoro

    Hello there,

    Thanks for writing.

    It seems you’ve found the solution 🙂 – you’re right, galleries are shown when having more than one image.

    Have a nice day,
    Juan.

Viewing 4 posts - 1 through 4 (of 4 total)

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server