• Resolved nwarmenh

    (@nwarmenh)


    Loving this plugin — so robust!

    I would like to remove the permalink slug for locations, so that instead of

    mysite.com/locations/mylocationname

    the URL would be

    mysite.com/mylocationname

    (like with pages and posts, when WP’s permalink structure is set to /%postname%/)

    I know that I can change the slug from locations to anything else, in Events > Settings > Pages > Permalink Slugs. But that won’t let me enter a *blank* value.

    I’ve read some other stuff about EM permalinks, but my WP_Rewrite mojo is pretty weak.

    Any hints for me?

    Thanks!

    https://www.ads-software.com/plugins/events-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry this is not possible at the moment and might require custom coding on your part to make this work.

    Thread Starter nwarmenh

    (@nwarmenh)

    Thanks for the reply.

    Interestingly, after I started playing around with trying to write that code (Can register_post_type modify an existing post type’s slug if I hook it in with later priority? Am I just going to install Redirection and make my client do it manually?) I stumbled on the fact that it already works out of the box!

    In other words, when I send a browser to:

    mysite.com/locationname

    it automagically redirects it to

    mysite.com/locations/locationname

    Good enough for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing prefix slug from locations permalinks’ is closed to new replies.