WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] Pagination incorrect for NextGEN Thumbnail Gallery (3 posts)

  1. HontoNoRoger
    Member
    Posted 8 months ago #

    Hello,

    I have a bug, which doesn't display the right amout of image pages for a thumbnail gallery.
    http://japanblog.jp.pn/bilder/japan-2010/ should have about 51 pages, only 17 are visible.

    After some trial & error debugging I found out, that the

    $total
    variable in

    nextgen-gallery\products\photocrati_nextgen\modules\nextgen_pagination\mixin.nextgen_basic_pagination.php

    is not using the maximum image count from the database, which I changed to 1600 and saved it, but the default value of 500, which makes it 500 pictures / 30 images per site = 17.

    But you can get to the other pages if you change the URL manually.

    I'm using WordPress 3.8 with NextGEN Gallery by Photocrati 2.0.40.

    Could somebody with knowledge on the code please look into it? Thanks!

    http://wordpress.org/plugins/nextgen-gallery/

  2. HontoNoRoger
    Member
    Posted 6 months ago #

    Alright, works now.

    It seems old galleries don't use the global value for Maximum image count but an own one, copied from the global value while adding the gallery to a page.

    What helped was a trick from Cais:

    "There are two things you can try ... first, look under Gallery > Other Options > Miscellaneous ... clear image cache (this may not change anything but it will not hurt).

    The other option would be to remove the current gallery inserted into the post/page; update; then, re-insert the gallery into the post/page. This should then use the new value you set.

    Just to note, any gallery inserted via the ATP will hold all settings at the time the gallery was inserted."

    Thanks.

  3. photocrati
    Member
    Plugin Author

    Posted 6 months ago #

    @HontoNoRoger - Thanks for sharing this ... and for letting the community know you sorted out this issue, too.

    - Cais.

Reply

You must log in to post.

About this Plugin

About this Topic