Title: Duplicate post slug
Last modified: April 24, 2021

---

# Duplicate post slug

 *  Resolved [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/)
 * Hi, thanks for your awesome plugin. Best for duplicate posts, for me.
    I need
   your opinion…
 * I duplicate a post every day, previously duplicated the day before.
    The problem
   is the slug. That “-2” is added to each publication. So currently the url is 
   [http://www.mysite.come/my-post-2-2-2-2-2-2-2-2-2-2/](http://www.mysite.come/my-post-2-2-2-2-2-2-2-2-2-2/)
 * I think this “-2” is set in the WordPress core. What do you think?
    What if it
   was possible to set a dynamic slug when a post is duplicated? For example with
   the date, or time, or post-id. What do you think?
 * Thanks for your work.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/#post-14364914)
 * Hi dear user.
 * Yes, it’s come from the WordPress core.
 * We can change it, but the best and the optimal way is the current way that our
   plugin works.
 * So, unfortunately, we can’t update our plugin and change this part.
 * Thanks and have a great day.
 *  Plugin Author [wpdevart](https://wordpress.org/support/users/wpdevart/)
 * (@wpdevart)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/#post-14391619)
 * Hi dear user.
 * We will close this topic, if you have other questions, then contact us again.
 * Thanks.
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/#post-14391709)
 * Can you consider inserting the date in the slug, or inserting the post id in 
   the slug?
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/#post-14393688)
 * I really need a php function that inserts the post id to the slug when duplicated.
   Can you do this for me please?
 *  Thread Starter [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * (@marcorroma)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/#post-14407843)
 * Please, look at this:
    [https://wordpress.org/support/topic/redirect-problem-41/#post-14407840](https://wordpress.org/support/topic/redirect-problem-41/#post-14407840)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Duplicate post slug’ is closed to new replies.

 * ![](https://ps.w.org/duplicate-page-or-post/assets/icon-128x128.png?rev=2514890)
 * [Duplicate Page or Post](https://wordpress.org/plugins/duplicate-page-or-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-page-or-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-page-or-post/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-page-or-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-page-or-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-page-or-post/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [marcorroma](https://wordpress.org/support/users/marcorroma/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/duplicate-post-slug/#post-14407843)
 * Status: resolved