• Resolved thedetoureffect

    (@thedetoureffect)


    Hi there,

    None of my website URL slugs are identical – every page has a totally different URL that doesn’t match the other pages. One page is supposed to be detoureffectphotofeed.com/2012, another page is detoureffectphotofeed.com/2013, another is detoureffectphotofeed.com/2014, etc. Yet because I used the Duplicate Page plugin to create each page, it keeps putting a “-2” on the end. So I’ve actually got detoureffectphotofeed.com/2012-2, detoureffectphotofeed.com/2013-2, detoureffectphotofeed.com/2014-2, etc.

    I understand that there can’t be duplicate page names or file names and WordPress will add a -2 if there are, but that’s what’s weird; the page names are NOT the same. Even if I try to change them again (which I shouldn’t have to do because they are already unique), no matter what I change it to, it always adds the -2.

    The way I created the pages is like this: I first created the page called 2012. Then I used the Duplicate Page plugin to create a copy of that page, which I think was originally called 2012-copy. But then I went into the editor to change the slug to “2013” instead. Even though there are no other pages or files called “2013”, after clicking “save” it automatically reverts the page name to “2013-2”.

    I saw someone else had this problem here: https://wordpress.org/support/topic/theres-2-not-able-to-change-permalink-for-duplicate-page/

    The support person responding to that inquiry just keeps saying “you can’t have duplicate page names, you have to edit the slug” but clearly isn’t getting that we ARE trying to edit the slug and we DON’T have multiple pages with the same name, yet the -2 gets added no matter what.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support duplicatepagesupport

    (@duplicatepagesupport)

    Hello thedetoureffect,

    Thank you for reaching out and taking the time to explain the issue in detail.

    I completely understand the confusion here, and I want to assure you that you’re not alone—this has tripped up many users before. However, I’d like to clarify that this behavior is not caused by the Duplicate Page plugin, but rather by WordPress itself.Here’s how you can verify it:

    1. Deactivate the Duplicate Page plugin temporarily.
    2. Create a new page and set the title/slug to a numeric value like 2013, 2024, or even something random like 231423544234.
    3. Save the page.

    You’ll notice that WordPress automatically appends “-2” (or higher) even if no other page is using that slug. This happens because WordPress treats numeric slugs differently—sometimes, it thinks they may conflict with archive pages, internal IDs, or reserved routes, and it automatically adds a suffix to avoid conflicts.

    So, while it might seem like a plugin issue, the behavior would be the same even without the plugin involved.

    Workaround Suggestions:

    • Try using slugs like year-2013 instead of just 2013.
    • Or, you can change your Permalink settings option to something plain to remove the -2 slug.

    I hope this clears things up! Please let us know if you have any other questions—we’re happy to help.

    Best,

    Duplicate Page Support

Viewing 1 replies (of 1 total)

The topic ‘Page URLs have “-2” at the end’ is closed to new replies.