Title: Metadata bug
Last modified: August 18, 2024

---

# Metadata bug

 *  Resolved [Alex](https://wordpress.org/support/users/alexandronalin/)
 * (@alexandronalin)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/metadata-bug-2/)
 * Hi
   I would like to report that if I duplicate a form, the metadata in the database
   is not consistent.In the wp_posts table the new form_id is correctly recorded,
   but the post_name is parentname-2, parentname-3 and so on.It would not be a problem,
   but if you use plugins like uncanny, the name of the form trigger are all the
   same, a long list of duplicate form names with the same name.Fortunately uncanny
   reports the Forminator form id next to the name.I think it should be corrected
   for consistency.
 * thanks

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

 *  Plugin Support [Laura – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support8/)
 * (@wpmudev-support8)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/metadata-bug-2/#post-17961390)
 * Hi [@alexandronalin](https://wordpress.org/support/users/alexandronalin/)
 * I hope you’re well today!
 * Thank you for reporting this.
 * I tested it and can confirm it so I’ve asked our Forminator Team if we could 
   make some improvement with future releases. Note that I can’t give you any ETA
   at the moment as they need to look into it first and, if decision is made to 
   make those changes, include it in development schedule. But it’s already reported
   so they’ll check it.
 * —
 * With that being said, it actually is not a bug. We are referring here to the 
   _posts table and there are three columns important to the case: ID, post_title
   and post_name. ID is of course unique (as it’s automatically generated by the
   database upon record insertion); post_title is – just like with any regular post–
   a title and in this case this is the form name; post_name – is a slug (so the
   part of the URL that determines which post is it).
 * Now, when a form is duplicated a new record is inserted into that table:
 * – ID is autoincremented/set automatically by DB engine
    – post_title is indeed
   set to the exact same as title of original form (as it’s a duplicate) – and that’s
   nothing wrong with that; you can have multiple regular posts on site with the
   very same title as well – but the post_name gets that number added because post_title
   is the same; it’s the same as if you would add e.g. 3 posts with title “ABC” 
   to the site – first one would be /abc, second one would be /abc-1 and so on.
 * Technically speaking it’s all fine and rather standard to WordPress.
 * What I am a bit surprised with is how Uncanny Automator uses that. I tested it
   and you are right – it shows the same form name and it does that even if I actually
   rename the copied form. It suggests that instead of taking “post_title” (which
   would make a bit more sense in my opinion) it seems to be taking “post_name” (
   so a slug in fact) and additionally stripping any number suffix from it. It’s
   a bit unexpected. So it’s indeed good that it at least shows the form ID.
 * But that’s just a side-note as I was actually curious why it works that way. 
   As mentioned, I’ve passed your feedback to our Forminator Team so developers 
   will look into it and see if we could improve that duplication behavior with 
   one of future releases.
 * Thank you for reporting it!
 * Best regards,
    Adam
 *  Thread Starter [Alex](https://wordpress.org/support/users/alexandronalin/)
 * (@alexandronalin)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/metadata-bug-2/#post-17961530)
 * Thanks Adam for the detailed reply. I’m glad I was helpful in reporting.
 * I’ll keep an eye on your changelog
 * Bets regards

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

The topic ‘Metadata bug’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Alex](https://wordpress.org/support/users/alexandronalin/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/metadata-bug-2/#post-17961530)
 * Status: resolved