Changing slug setting to anything of than default "places" results in 404

This topic contains 7 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , , ,

  • Author
    Posts
  • #506349

    Cindy Sutton
    Expired Member
    Post count: 15

    Changing the slug setting in PLACES -> SETTINGS -> GENERAL to anything other than “places” results in the URL being appended with “category/” IE: http://mydomain.com/directory/category/accounting/category/ which in turn results in 404/Page not found, where “directory” is the new slug that replaces the default.

    The main directory page on this site I’m working on is located at /business-directory/ which is a page built using the divi builder and uses the geodirectory category list shortcode. Ideally I would want everything to fall under that pages slug, so for the accounting category, the full route slug should read like “/business-directory/category/accounting/” but again, if I change that slug setting to anything other than “places” it completely breaks the directory and renders the setting useless.

    Am I missing something? Is this a bug?

    #506389

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    Have you tried re-saving permalinks after you make the change?

    Are you using the full location and category in the URL?

    Please see https://wpgeodirectory.com/docs-v2/geodirectory/settings/permalinks/#404

    If that doesn’t fix it for you please include WP Admin credentials and site URL in a private so we can take a look at the settings.

    Thanks

    #506684

    Cindy Sutton
    Expired Member
    Post count: 15
    This reply has been marked as private.
    #506689

    Kiran
    Moderator
    Post count: 7069

    Hi Cindy,

    See the issue? I want the directory categories and listing to use the page slug but trying to change this makes the page unreachable.

    CPT slug must be unique and it can not be used for page slug. Listings and category pages uses CPT slug as a base slug.
    For category urls it has /category/ slug to differentiate between a listing url & category url.

    Let us know.

    Thanks,
    Kiran

    #506717

    Cindy Sutton
    Expired Member
    Post count: 15

    Hmmm, so I can’t have my directory structured to use a slug configuration like:

    http://4ph.663.myftpupload.com/business-directory/ <- Custom page using categories shortcode designed as the starting point of the directory
    http://4ph.663.myftpupload.com/business-directory/category/attorneys-law-firms/ <- A directory category
    http://4ph.663.myftpupload.com/business-directory/a-law-firm <- A directory listing

    Essentially you can’t use a custom page as the base of your directory while also maintaining a consistent URL/slug structure?

    #506720

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #506909

    Cindy Sutton
    Expired Member
    Post count: 15

    I see…

    Would it be possible in page attributes to set the parent page of the GD Archive and GD Details page templates to that of my custom page and thus be able to use this URL/route structure?

    I don’t want the base of the directory to be all listings, I want it to be this custom designed page of a list of categories.

    If it’s simply not possible to configure it like this, it would be a really useful feature to look into adding!

    #507136

    Alex Rollin
    Moderator
    Post count: 27815

    It is not possible with the GD settings.

    In WP each custom post type needs a base slug that does not conflict with other pages/CPTs.

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount