[Resolved] WordPress Adding “-2” to number-only page slugs

Home Forums Support [Resolved] WordPress Adding “-2” to number-only page slugs

Home Forums Support WordPress Adding “-2” to number-only page slugs

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2150191
    Brent Wilson

    I have run into an issue. When I add a new page with a number-only slug (like 2020), a “-2” is being added to the end of the slug when I publish. As far as I can tell, this is not related to that slug already being used. I have also tried publishing a page with a word instead of only numbers for the slug, and it seems to be functioning properly. Any idea what might be causing this “-2” to be added to number-only page slugs?

    #2150194
    Brent Wilson

    Here is a Loom video showing the weird behavior that I am experiencing: https://www.loom.com/share/dc640ea910834e3183e24a50e99eec42

    #2150266
    Fernando
    Customer Support

    Hi Brent,

    This is the default behavior of WordPress when the slug is already used.

    Specifically, numerics slugs are not allowed because it conflicts with WordPress’ paging functionality. It is disabled by default. Numeric slugs are automatically appended with a -2.

    Hope this clarifies. 🙂

    #2150350
    Brent Wilson

    Oh, okay. I guess I hadn’t realized that. Thanks for clarifying it for me.

    #2150358
    Fernando
    Customer Support

    You’re welcome Brent! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.