How to append unique numbers to new duplicated post titles/urls?
-
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:
https://www.domain.com/test/
https://www.domain.com/test-2/If you create a third post, you then get another url like:
https://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:
https://www.domain.com/test/
https://www.domain.com/test-#####/ < the random stringthanks!
[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]
- The topic ‘How to append unique numbers to new duplicated post titles/urls?’ is closed to new replies.