Custom URL

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #143841
    localsocial
    Participant

    Instead of “events”, we’d like to position this under an existing menu, such as “/area/calendar-of-events/”. For this actual event, we’d like it to be “/area/calendar-of-events/event/name/”.

    Also, instead of “/organizer/”, we’d like it to be “/area/calendar-of-events/organizer/”

    If this type of customization possible?

    Basically, we’re trying to have the plugin appear so it “fits” our site’s structure.

    Thanks

    #144557
    Brook
    Participant

    Howdy localsocial,

    Absolutely that is possible. If you go to WP Admin > Events > Settings, right there on the general tab you will see the box “Events URL slug”. You can change this to any other URL so that it fits your site structure. You might also change the box underneath. Once you are happy click Save Changes. Did that do what you wanted? Please let me know. Cheers!

    – Brook

    #144624
    localsocial
    Participant

    I tried that. Tells me it can’t have a slash in the URL.

    #145442
    Brook
    Participant

    Hello again. I am sorry I did not test that out, you are right we do filter out slashes from that particular slug. Looking at our rewrite code it becomes quite apparent that we depend on the slug to not contain slashes.

    This customization is still possible, it just won’t be easy like I initially said. 🙁 If you have a knowledge of PHP or Apache mod rewrite, you should be able to do what you need. Using mod rewrite you could replicate the rewrite rules (found here). Obviously you would want these rules to have precedence over the WordPress ones. I believe you would need to add the [L] condition and put them above the WP rules to get it working properly.

    Or, you could add or override Tribe rewrites in a plugin of your own, or your theme’s functions.php file. You could essentially copy our rules above but change them around to include your custom directory.

    I wish it was easier or required less programming knowledge. But, if you are the programmer sort then the above should be relatively easy. Please let me know if that helps, or if you have further questions. Thanks!

    – Brook

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Custom URL’ is closed to new replies.