Strange issue with gallery when displays 3 columns

Couldn’t you make it shorter by doing the following? function meks_gallery_atts($output, $pairs, $atts) { $output = array(); if (in_array($output[‘size’], array(1,2,3,4,5,6,7,8))) { $output[‘size’] = ‘square_thumb_’ . $output[‘size’]; }else{ $output[‘size’] = ‘square_thumb_9′; } return $output; } It sounds like $atts[‘columns’] is never 3. Have you tried strict-checking on strings, rather than loose-checking on integers? is using this: … Read more

Text lost under image after WordPress 5.0 upgrade

Interesting problem… I went into the page in Chrome and used the Development Tools (ctrl+shift+I) or just right click on the element and select Inspect. The images are being displayed in a Flexbox and it looks like there is a conflict between the Flexbox and the blocks above it. There are a number of ways … Read more

Install Gallery 3 in Subdirectory of WordPress

Your problem is that you installed it in a subdirectory of WordPress. Both WordPress and Gallery 3 will use virtual URLs in their domain, and with them both acting on the same folders, neither system knows what to do. So you have http://blog.url/ and http://blog.url/gallery3/ which is also http://g3.blog.url/. The subdomain will point to that … Read more

How do I create a gallery page?

You should try to install the NextGEN gallery plugin. http://wordpress.org/extend/plugins/nextgen-gallery/ With it, you can easily achieve the page you want. Once installed, create a few galleries and upload your pictures. You can order your single galleries into albums. On the pages listing the galleries and the albums, you can see their unique ID. Look the … Read more

Gallery Image Numbers?

This should do it: global $post; $ancestors = get_post_ancestors($post->ID); $photos = get_children(array( ‘post_mime_type’ => ‘image’, ‘post_parent’ => array_shift($ancestors), )); $index = 0; foreach($photos as $photo){ $index++; if($photo->ID === $post->ID) break; } printf(‘%d out of %d’, $index, count($photos));