Creating a pagebreak within gallery function
-
I’ve created a gallery-override in my functions.php which replaces the default gallery shortcode with a new function. It displays each photo vertically, full size, with title and description below…no problem so far, I’ve written the code, and it works great.
Here’s the tricky part hopefully someone has a suggestion for.
Between each photo, I would like to create a page break ( <!–nextpage–> ). I tried echoing the tag with my function, but the shortcode function obviously executes after the page has been rendered.
Is anyone aware of a workaround here, or do I have to go in much deeper to make this happen?
The topic ‘Creating a pagebreak within gallery function’ is closed to new replies.