Images Missing from built in WP Gallery

My wife has a wordpress 3.9.2 site that has a ton of images spread across many galleries. Many of those galleries though, have hundreds of images. This is partly managed by the Paginated Effects Gallery plugin, which breaks the galleries up into 15 image pages. On one particular gallery page, which has more images than any other, after a recent update she has noticed that if more images are added to the gallery they do not always show up.

Note: This is NOT using NextGEN gallery (and she would prefer not to switch to it).

If we manually enter the Database IDs of the images into the shortcode all of them will show up on the rendered page but nothing after image 995 will show up in the visual editor. It is not a specific image as if I move images to be before the current image #995 it just pushes everything past the new 995 out of the visual editor view. Though they stay in the shortcode and remain visible on the rendered page.

However, if we use the visual editor to add images, it works initially. Images after 995 show up on the rendered page and the editor. But, if we go back and add more, all those previously after 995 are replaced with the new ones, including if you look in the text view at the numbers in the gallery shortcode.

So, clearly, if it’s in the gallery shortcode it will show up on the rendered page no matter what. But the visual editor seems to not be able to show or add anything past 995 without overwriting the images previously in those spots.

Unfortunately, the only real way to get those database IDs is with the visual editor 🙁

I have not been able to find anything that says there is a max number of images you can have in one gallery. If it was right at 1000 I would just assume it was a hard limit. But 995 seems very weird.

We have disabled ALL plugins, restored from old DB backups, created a new page and copied that gallery’s code into it… all with the same result.

Anyone have an idea of what could be going on here?

NOTE: This problem STILL occurs regardless of the Paginated Effects Gallery plugin being enabled or not. I have already confirmed it still happens without ANY plugins enabled.

3 Answers
3

You have a limit inside an script and you should change some values to adapt your needs:

jQuery....
//user settings
var thumbsPerPage = 15;
var maxPaginatedLinks = 200;
var hideEffect = "drop";
var showEffect = "drop";
var effectSpeed = "slow";
var count = 1;  
//handles multiple galleries on page
var galleryCount = $( "[id^=gallery-]" ).each( function()
var galleryId = "#" + $( this ).attr( "id" ) + " "; 

Leave a Comment