How can I get the next or previous event for pagination
-
Hello,
I know that this has been already posted but I did not find any snippet to start from.
My needs:
I have a pagination function (simply prev and next) that works for any kind of posts, Cpt …
Actually for events, the pagination is linking next and prev posts, not events in chronological order.
What I would like to know is how I can implement specific methods get_previous_event, get_next_event in order to make a pagination by chronology.
It could be also a scope (next previous) or even a placeholder,it doesn’t matter …I’m really familiar with placeholders or scopes customization but her, it’s just the black hole….
Any idea or sample code ?
Thx
- The topic ‘How can I get the next or previous event for pagination’ is closed to new replies.