Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Paolo

    (@paoltaia)

    Hi,

    I’m sorry, but that is not possible with WordPress.

    The URL path after the domain, must be a wordpress component such as a page slug, a custom post type slug, a post title slug or a taxonomy prefix.

    That’s why we have the location page (that I guess you called directory) before the locations slugs. In addition the location page is what set the PHP Session for the locaiton, so it can’t be bypassed.

    It could be done but with massive performance losses, in any case that would be considered a customization that goes beyond support.

    Thanks

    Thread Starter alvaroj89

    (@alvaroj89)

    Hello Paolo!

    Thanks a lot for the answer.

    I guess the only options then would be:
    – Create a taxonomy with each element being the different Cities of the elements.
    – Rewrite with friendly URLs in htaccess and use 301 redirects.

    In both cases, the breadcrumbs and links displayed by the plugin wouldn’t match the structure although they would redirect ok.

    Is there any hook we can use to modify those?

    Thanks again!

    Plugin Author Stiofan

    (@stiofansisland)

    Most of our stuff is hookable, if you find something that is not then we will add it.

    If you really want to attempt this then you might want to look at out codex and the filters listed:
    https://wpgeodirectory.com/codex/codex/geodirectory_functions/geodir_breadcrumb/

    Thanks,

    Stiofan

    Thread Starter alvaroj89

    (@alvaroj89)

    Thank you so much Stiofan!

    Didn’t know about your codex. I will have a look at it. It seems that’s what I needed.

    Cheers!

    Plugin Author Stiofan

    (@stiofansisland)

    You are welcome! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Remove listing url prefix’ is closed to new replies.