WordPress.org

Ready to get started?Download WordPress

Forums

How to append unique numbers to new duplicated post titles/urls? (2 posts)

  1. luxman
    Member
    Posted 1 year ago #

    Here's the best way to explain what I want to do...

    As of now if you create two (2) posts with the same title you get the following:

    http://www.domain.com/test/
    http://www.domain.com/test-2/

    If you create a third post, you then get another url like:

    http://www.domain.com/test-3/

    I am working on a directory, so the odds of someone having the same name is pretty good; therefore I want to append a custom url string to the end of the duplicated name - not just a 1 digit number.

    Is there a way for me to add a custom 4-5 digit string at the end of a duplicate post/page/listing? So that it reads:

    http://www.domain.com/test/
    http://www.domain.com/test-#####/ < the random string

    thanks!

    [Moderator note: Oops, you accidentally removed yourself from the 'No Replies' list by replying to yourself. We look at that list. We may prioritize threads that haven't been answered as opposed to threads that have. Your reply has been removed]

  2. luxman
    Member
    Posted 1 year ago #

    Is there a way to make the "2" a larger number?

Topic Closed

This topic has been closed to new replies.

About this Topic