Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the default WordPress Gallery (along with the Cleaner Gallery plugin) to display some images. The one thing that the gallery doesn't seem to have is pagination. What I'd like to do is after 6 images add Previous and Next links to navigate through the pages.

Having said that, there are several plugins that claim to add this capability, but all of them were developed without the new Media Library, that comes standard with WordPress 3.5. I don't want to change the experience for the user...I just want to possibly add functionality through functions.php or somehow on the loop itself. I have no problem applying the same thing to all galleries, so if the fix could somehow find the gallery short-code than that would be awesome! Not sure how to do it, just kind of thinking out loud here.

Any help is appreciated.

The code generated looks like this:

<div id='gallery-234-1' class='gallery gallery-234'>
    <div class='gallery-row gallery-clear'>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-11.jpg' title='gallery-(11)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-11-184x184.jpg" class="attachment-thumbnail" alt="gallery-(11)" /></a>
            </dt>
        </dl>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-10.jpg' title='gallery-(10)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-10-184x184.jpg" class="attachment-thumbnail" alt="gallery-(10)" /></a>
            </dt>
        </dl>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-5.jpg' title='gallery-(5)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-5-184x184.jpg" class="attachment-thumbnail" alt="gallery-(5)" /></a>
            </dt>
        </dl>
    </div>
    <div class='gallery-row gallery-clear'>
        <dl class='gallery-item col-3'>
            <dt class='gallery-icon'><a href='http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-4.jpg' title='gallery-(4)'><img width="184" height="184" src="http://new.joshrodg.com/wp-content/uploads/2012/09/gallery-4-184x184.jpg" class="attachment-thumbnail" alt="gallery-(4)" /></a>
            </dt>
        </dl>
    </div>
</div>

Thanks,
Josh

share|improve this question

closed as too localized by toscho May 12 '13 at 2:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 0 down vote accepted

I decided to use the NextGEN Gallery instead of the default gallery, there is a few extra steps, but it's not too bad.

Thanks, Josh

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.