Home › Forums › Calendar Products › Events Calendar PRO › Code snippet for descending past events – pagination broken
- This topic has 7 replies, 2 voices, and was last updated 11 years, 4 months ago by
Josh.
-
AuthorPosts
-
December 8, 2014 at 9:12 am #911901
btellock
ParticipantHello,
I recently got some help with ordering past events in descending order via the support post link below.
https://tri.be/support/forums/topic/ordering-past-events-in-descending-order/However, the pagination does not appear to work for past events after adding this snippet.(https://gist.github.com/elimn/0be6c4cbcf80b3721c81)
Any ideas? Thank you in advance for any assistance.
December 8, 2014 at 2:41 pm #912345Josh
ParticipantHello btellock,
Thanks for reaching out to us!
Just to clarify and make sure I’m understanding your question, you followed the code suggestion supplied in this thread from Geoff and everything worked fine. After adding the code from this gist, the updated template no longer has function pagination?
Thanks!
December 8, 2014 at 3:41 pm #912393btellock
ParticipantHey Josh,
Thanks for the reply! All I did was add the code snippet to my theme’s function.php, which worked for reordering the past events in descending order (most recently expired first). I was under the impression that the code snippet was an alternative to creating a new page template, which I did not do. Am I wrong here?So, the code snippet worked to get the past events listed in descending order, but the pagination when clicked, goes to a blank page (“next page” to view even older events) that displays “There were no results found”, when there are indeed additional older events.
Is there a way I can add some additional code to an existing page template to get the pagination to work?
Thank you in advance for any guidance on this.
Best,
BDecember 10, 2014 at 9:07 pm #914910Josh
ParticipantHello btellock,
Thanks for following up with us!
I just tested the snippet on my local install and I was able to get the pagination to work with my previous events. Do you have general pagination issues anywhere else on the site? You could try the Testing for Conflicts procedures to see if the pagination works while using a default theme.
I apologize for the inconvenience but let me know if this helps.
Thanks!
December 11, 2014 at 6:52 am #915302btellock
ParticipantThis reply is private.
December 11, 2014 at 8:57 am #915408btellock
ParticipantThis reply is private.
December 12, 2014 at 5:49 am #916277btellock
ParticipantAll is well on this topic. Thanks for your help, Josh!
December 12, 2014 at 11:22 am #916594Josh
ParticipantHello btellock,
Thanks for following up with us! I’m glad you were able to get the issue resolved!
I’ll go ahead and close this ticket. If you have any further questions please don’t hesitate to open a new one.
– Josh
-
AuthorPosts
- The topic ‘Code snippet for descending past events – pagination broken’ is closed to new replies.
