Past Events in List View

Home Forums Calendar Products Events Calendar PRO Past Events in List View

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #779380
    Adam Listek
    Participant

    Hello,

    I have updated the various plugins to version 3.8 and went through all my theme overrides to make sure that everything was properly updated. Everything works fine with one exception. Previously I was able to correctly control the paging links in the list view by using the following code that is listed in the included Gist. Since it has changed to using a list URL, the paging works correctly going forward but not going backwards. I can do the following:

    /list/page/2/

    But where previously I could do:

    /past/page/2/

    There doesn’t appear to be an equivalent functionality in the new changes. How do I properly replicate this functionality as it created nice permalinks that I could link too and is vital for the list view to operate properly in my theme.

    https://gist.github.com/anonymous/ebebe5cc55877c0352d2

    Thanks for the help!

    -Adam

    #779468
    Adam Listek
    Participant

    I resolved this issue thankfully by doing the following. I added a filter for the rewrite rules that Tribe generates and put my new rule at the top. You can see the function code in the included gist.

    add_filter( ‘tribe_events_rewrite_rules’, ‘add_rewrite_rules’ );

    https://gist.github.com/anonymous/8cb8466a8bee53142042

    -Adam

    #780469
    Brian
    Member

    I am glad to see you were able to fix this issue and thank you for sharing your coding.

    Since the issue is resolved I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Past Events in List View’ is closed to new replies.