Support » Fixing WordPress » Duplicate URLs

  • Hi There,

    Recently, I have created a website on WordPress with two categories i.e. example.com/written-test and example/oral-test.

    Now, when I am trying to create a post using both posts then it is not working properly.

    Example….

    I want Two Posts

    First, example.com/written-test/America
    Second, example.com/oral-test/America

    But When I Am trying to publish second post then it is something like example.com/oral-test/America-2 instead of example.com/oral-test/America. I checked all posts under the category “oral-test” but no one is identical so How can I resolve this problem, I want URL example.com/oral-test/America not example.com/oral-test/America-2

    PLEASE HELP ME!


    Regards & Thanks

    • This topic was modified 1 year, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Usually when WordPress appends the “-2” to a slug, that means you still have the old content by the same name, probably in the trash, draft, etc. If so, try emptying it.

    Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    Slugs must be unique, regardless of category or parent.

    Thread Starter ravikumar4587

    (@ravikumar4587)

    Hey Steve and Harmony,

    I have created 2 different categories “written-test” and “oral-test” and then published a post under the category “written-test” where the URL is example.com/written-test/america and now when i am trying to create an another webpage for america under different category then I am getting “-2”. I do not have any image in media section, no nothing, I have checked all the sections.

    Am i getting “-2” because I already created the webpage “America” under different category which is “written-test”??

    Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Volunteer

    Category is irrelevant. Parent page is irrelevant. Only the post/pages actual slug is relevant and that must be unique. <borg>Resistance is futile.</borg>

    You’ll need to come up with a better page title/slug for each.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Duplicate URLs’ is closed to new replies.