Way to Eliminate "All" in URL

This topic contains 4 replies, has 2 voices, and was last updated by  Clicko 9 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #164571

    Clicko
    Expired Member
    Post count: 9

    Hello,

    I am using the /region/city url structure. However, all my listings do not have a city, and when I don’t list one, you get “all/region” in the URL.

    Is there a way to eliminate the “all’ in the URL when the city is not input?

    Thanks

    #164586

    Guust
    Moderator
    Post count: 29970

    All listings need a city, GD cannot work without a city.

    https://wpgeodirectory.com/docs/definitions/#location

    #164589

    Clicko
    Expired Member
    Post count: 9

    I’ve disabled the need for a city by selecting “Select CPT to disable physical location.”

    However, I need to have a state in my URL. Would the only way to do that be making states into categories? Is there any way to make a custom state field that would include the state in the URL?

    Thanks

    #164593

    Guust
    Moderator
    Post count: 29970

    By selecting “Select CPT to disable physical location.” the listings in that CTP will not have any address at all. The only way to get the state in the URL would be by creating categories for each state.

    #164603

    Clicko
    Expired Member
    Post count: 9

    I’ll have to do that, then.

Viewing 5 posts - 1 through 5 (of 5 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