How to change default past events page url

Home Forums Calendar Products Events Calendar PRO How to change default past events page url

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1015736
    xrossglobalgroup
    Participant

    Hi Team,

    I have to change the Past Event URL from https://example.com/events/?tribe_event_display=past to https://example.com/past-events.

    I have read most of forum and discussion on previous. also, I have tried one plugin “Event Rocket” which you suggested on https://theeventscalendar.com/support/forums/topic/past-event-url/ but I can’t found any solution.

    I hope you come up with my solutions.

    Thanks in advance.

    #1015737
    xrossglobalgroup
    Participant

    This reply is private.

    #1015984
    Brook
    Participant

    Howdy again Xross,

    If you are interested in redirecting form one to the other then you could use Apache redirects, or any WP redirect plugin. Enter the two URLs, the one you want to redirect from and the one you want to redirect to. You’re done!

    If you instead want users to stay on the /past-events/ page and not get forwarded to the current one, then you will need to edit the WP Rewrite rules. The most straightforward way would be to use add_rewrite_rule() to add the rule. This will /past-events/ to behave like the /events/?tribe_event_display=past page. However, every section of our plugin will still link to the original URL. If you wish to stop this, the only tenable way would again be a redirect. Only in this case you would want to forward from the old URL to your new /past-events/ one. There might be a few complications along the way if you choose to add this optional final redirect.

    There would be your two methods of going about this. Does that answer your question?

    Cheers!

    – Brook

    #1016101
    xrossglobalgroup
    Participant

    This reply is private.

    #1016548
    Brook
    Participant

    This reply is private.

    #1016777
    xrossglobalgroup
    Participant

    This reply is private.

    #1017230
    Brook
    Participant

    Thank you for clarifying. What is the code you are using for add_rewrite_rule ?

    • Brook
    #1017236
    xrossglobalgroup
    Participant

    This reply is private.

    #1017272
    xrossglobalgroup
    Participant

    This reply is private.

    #1017291
    xrossglobalgroup
    Participant

    This reply is private.

    #1018775
    Brook
    Participant

    This reply is private.

    #1024136
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘How to change default past events page url’ is closed to new replies.