• Some of my site’s galleries have hundreds of images, with new images regularly added. I am trying to create pagination for these galleries where it would automatically push older images to other pages as new images are added; however, the “numberposts=” feature doesn’t appear to work. No matter which number I pluck in there, it displays all of the images. The “offset=” feature does work, however, it’s useless without the numberposts hook working.

    Here’s an example of my code, any suggestions?

    [gallery order="ASC" numberposts="2" ids="5097,5098,5116,5081"]
    
    <!--nextpage-->
    
    [gallery order="ASC" offset="2" numberposts="2" ids="5097,5098,5116,5081"]
Viewing 1 replies (of 1 total)
  • sadhaka

    (@sadhaka)

    I think you need:

    [gallery numberposts="2" ids="5097,5098"]
    <!--nextpage-->
    [gallery offset="2" numberposts="2" ids="5116,5081"]

    … an so-on, the IDs matching the “numberposts” in each page.

Viewing 1 replies (of 1 total)

The topic ‘"numberposts" Pagination For [gallery] Shortcode’ is closed to new replies.