country/state/city slug

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

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

Open Support Ticket
  • Author
    Posts
  • #18152

    pawon
    Free User
    Post count: 34

    Hi,

    Is it possible to edit the slug for the country/state/city?

    Some slug names were already taken becuase of an old plugin, so new locations where created with slugs like:

    michigan-1
    ohio-1
    belgium-1

    URL then looks like this: http://www.domain.com/businesses/united-states/michigan-1/troy/categroy/businessname/

    Probably, if you have two cities of the same name in your directory, similar slugs will be created.

    For anybody with the same problem… I couldn’t find anywhere to edit it so I did it in the database:

    table: geodir_gd_place_detail, column post_locations
    table: geodir_post_locations, column region_slug

    Is it possible to edit this somewhere in settings? Or, can this be added in the next release?

    Thanks

    Carsten

    #18154

    Guust
    Moderator
    Post count: 29970

    Hi and welcome.
    Different cities with the same name will have the same slug, because they are always put together with the country and the region.
    Your problem is really a wordpress problem, and the only way to prevent it is to delete your old slugs or tags etc before creating locations in GD.

    #18223

    Paolo
    Site Admin
    Post count: 31206

    HI, Guust is correct, WP will not allow to create 2 elements with identical slugs.

    SO the only way is to remove anything with location names (tags/categories) prior to creating locations, or WP will automatically add -1 to all of them.

    Thx

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

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

Open Support Ticket