[eluser]someone
[/eluser]
Hello,
I have new problem with URLs in database. I already created script which transform title of post to seo url. Now if same seo url is already in database, I would like to add some number at the end of post.
Example:
Title of post: My new bike
First seo url: my-new-bike
So if this url is already in database I would like to add a sequence of numbers.
Example:
First seo url: my-new-bike
New seo url with same title of post: my-new-bike-1
Second new seo url: my-new-bike-2
Third new seo url: my-new-bike-3
.
.
.
So does anybody know how to do this?
Thanks! :-)