I am having this issue too and it appears to stem from the request on this page:
https://wordpress.org/support/topic/pagination-problem-85/
Dan, what about those of us who don’t have a large amount of documents to show in one page? For instance, I only want to show 4 documents in a row and then have that row paginate without jumping around the page. Can you make the scroll jack an option instead of applying to everyone by chance?
Hmmm… The intent of that feature was for it to not move the page up if the whole gallery was already visible on the page. In other words, if I can see the top of the gallery when I paginate it *shouldn’t* move your scroll location. It sounds like this is not happening for either of you?
What browsers are y’all using? I’ll investigate.
-Dan
Hi Dan, could it be because I’m using multiple galleries on the page? I’m experiencing it with Chrome. If you go to this page and try pagination within “job descriptions” you’ll see it.
http://laborandemploymentsource.com/toolkit/forms-templates-samples/recruitment-hiring/#group-5
Hey Dan, did you notice what I was talking about?
Interesting. Looking at the JavaScript console, the logic to find the top of the gallery is failing.
In your wp-config.php, could you please add the following: define( 'SCRIPT_DEBUG', true );
? This will allow me to see what exactly is breaking.
-Dan
Hi Dan, I added the script debugger. Should be live now, thanks!
Ah! I see what’s going on. There is indeed a bug in DG. It looks like when we pull a new page in the pagination it’s always returned as if it were the first gallery on a page. So if you have only one gallery, it will work correctly. But with more than one where pagination is used on the second or later gallery it will break.
Now that I see what’s happening, this should be a pretty quick fix. I’ll try to find time to get a fix out this weekend.
Feel free to remove the debug line from your wp-config now and thanks for your help narrowing this down!
-Dan
Awesome Dan! Super exciting cause I’m launching this site in the next week or so.
burgustu,
If you update to version 4.4.3 you should now find things function better. Please let me know if you find any additional quirks and good luck with the site launch!
-Dan
Looking good! Thanks again!
Working great for me too. Thanks for fixing that, Dan!
My pleasure! 🙂
If you haven’t already, feel free to leave a review of Document Gallery!
-Dan