How to find a slug and remove a region

This topic contains 2 replies, has 2 voices, and was last updated by  Simon Smith 8 years, 5 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #296724

    Simon Smith
    Buyer
    Post count: 12

    How to find slugs and how to remove a region

    THE PROBLEM
    For Places in Devon, I am getting ‘devon-1’ rather than just ‘devon’ showing – for example … http://www.greenfuse.co.uk/location/united-kingdom/devon-1/
    So the ‘Region’ ‘Devon’ has the slug ‘devon-1’ associated with it.
    I am aware that this came about because WP does not allow duplicate slugs and something else was using the slug ‘devon’.
    And something else is till using the slug ‘devon’, because if I try to add anything with the slug ‘devon’ it changes it to ‘devon-2’

    MY QUESTIONS
    How can I find that “something else” that is using the slug ‘devon’?
    Assuming I can find it and remove it, how can I reset the Region Devon to use slug ‘devon’

    FURTHER INFO
    I had 3 ‘Places’ based in Locations that use Region: Devon (all showing ‘devon-1’)
    I deleted these in the hope that the Region Devon might get reset but it was remembered.

    I also initially set up ‘county’ categories (for reasons that are not worth going into here) and I’m sure i created one called Devon which would have created a devon slug (although I’m sure that was devon-2!). I have since deleted all those categories.

    I am not using Tags (and none of the existing ones show devon).

    I did read in another Post “The solution is to search the database for the slug greece and change it to greece-1. Then search for greece-1 and replace all results (except the one you just changed) with greece.”
    If, by this, it was meant search by going through all places, categories and tags, I have already done this.

    With thanks
    Massimo
    __________________________________________________________

    We are using: GeoDirectory 1.6.8 and GeoDirectory Location Manager 1.5.0
    with WordPress 4.6.1

    Other plugins
    Black Studio TinyMCE Widget Version 2.2.12
    Enable Media Replace – Version 3.0.4
    Genesis Columns Advanced – Version 2.0.2
    Genesis Simple Edits – Version 2.1.4
    Genesis Simple Hooks – Version 2.1.2
    Genesis Simple Sidebars – Version 2.0.4
    Google XML Sitemaps – Version 4.0.8
    Gravity Forms – Version 2.0.7
    iControlWP – Version 2.13.0
    Responsive Lightbox – Version 1.3.2
    Shield – Version 5.5.4
    Shortcodes Ultimate – Version 4.9.9
    Simple 301 Redirects – Version 1.07
    WP Super Cache – Version 1.4.8

    #296726

    Guust
    Moderator
    Post count: 29970

    Have a look here: https://wpgeodirectory.com/docs/faqs/why-do-my-locations-get-a-1-at-the-end/
    You need to do that search in the database itself, for example with phpMyAdmin.

    #296728

    Simon Smith
    Buyer
    Post count: 12

    I have found the answer – after struggling for a couple of days (not full time!) before finally posting this question!

    GeoDirectory / MulitLocations / Manage Location
    and then deleting all locations that included Devon

    Going back and creating a new Place in devon created correct URL

    Sorry to have bothered you!

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount