Code snippet for descending past events – pagination broken

Home Forums Calendar Products Events Calendar PRO Code snippet for descending past events – pagination broken

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #911901
    btellock
    Participant

    Hello,
    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.

    #912345
    Josh
    Participant

    Hello 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!

    #912393
    btellock
    Participant

    Hey 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,
    B

    #914910
    Josh
    Participant

    Hello 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!

    #915302
    btellock
    Participant

    This reply is private.

    #915408
    btellock
    Participant

    This reply is private.

    #916277
    btellock
    Participant

    All is well on this topic. Thanks for your help, Josh!

    #916594
    Josh
    Participant

    Hello 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Code snippet for descending past events – pagination broken’ is closed to new replies.