Support » Fixing WordPress » Duplicate URLs

  • Hi There,

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

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


    I want Two Posts


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


    Regards & Thanks

    • This topic was modified 2 years, 2 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 Steven Stern (sterndata)


    Forum Moderator & Support Team Rep

    Slugs must be unique, regardless of category or parent.

    Thread Starter 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 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 Steven Stern (sterndata)


    Forum Moderator & Support Team Rep

    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.