Title: Short code
Last modified: April 12, 2025

---

# Short code

 *  Resolved [reznickovan](https://wordpress.org/support/users/reznickovan/)
 * (@reznickovan)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/short-code-167/)
 * **How to change the form number in the shortcode?**
   After transferring the content
   of the website to another website, I need to display the form that I have for
   many products. I need the same shortcode as on the original website, otherwise
   the form does not display and I have it forhundreds of products, I can’t rewrite
   it all. I need to change it directly on the form so that it has the necessary
   shortcode.

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

 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/short-code-167/#post-18417029)
 * Hi [@reznickovan](https://wordpress.org/support/users/reznickovan/),
 * Thanks for reaching out!
 * It sounds like you need to match the form IDs on your new site to the old one
   so you don’t have to rewrite hundreds of shortcodes. For this, you will need 
   to change the Form ID in the database.
 * It’s important to be very careful when working with the database, as any mistakes
   could affect your website. **I strongly recommend backing up your website before
   making any changes to the database.** Your hosting provider can help you create
   a backup.
 * Here’s how you can change the form ID in your database to match your old shortcodes:
    1. **Access your Database:** You’ll need to access your database using a tool like
       phpMyAdmin. This is usually provided by your hosting provider in your hosting
       control panel. If you’re not sure how to access it, your hosting provider can
       definitely help you out.
    2. **Find the `_posts` Table:** Once you’re in your database, look for a table 
       called `_posts` (or sometimes `wp_posts`, depending on your setup). Click on
       it to view its contents.
    3. **Check for Existing IDs:** Before changing anything, it’s _crucial_ to make
       sure the ID you want to use isn’t already taken by another post. Look through
       the `ID` column to see if the ID from your old shortcode is already in use. 
       If it is, you’ll need to choose a different ID. Changing an ID that’s already
       in use could cause problems.
    4. **Change the Form ID:** Once you’ve confirmed the ID is available, find the 
       form you want to update. Click the “Edit” button (it might look like a pencil
       icon) for that row. In the `ID` field, carefully change the number to the ID
       you need from your old shortcode. Then, click “Go” or “Save” to save the change.
    5. **Test Your Shortcode:** After updating the database, go to a page or post where
       you’re using the shortcode and check if the correct form is now displayed.
 * I know working with the database can seem complicated. If you’re not comfortable
   doing this yourself, your hosting provider should be able to assist you with 
   these steps. They’re experts at managing databases!
 * Here are some helpful screenshots that show what you should be looking for:
    - WPForms Original Shortcode: [https://a.supportally.com/i/i6G8kI](https://a.supportally.com/i/i6G8kI)
    - Form ID in the database: [https://a.supportally.com/i/xa7cjg](https://a.supportally.com/i/xa7cjg)
    - New Form ID in the database: [https://a.supportally.com/i/JlKqHu](https://a.supportally.com/i/JlKqHu)
    - Shortcode after changing the Form ID in the database: [https://a.supportally.com/i/KgQAGv](https://a.supportally.com/i/KgQAGv)
 * I hope this helps! Let me know if you have any questions or need further assistance
   with WPForms Lite.
 *  Plugin Support [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * (@rsouzaam)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/short-code-167/#post-18422772)
 * Hi [@reznickovan](https://wordpress.org/support/users/reznickovan/),
 * We haven’t heard back from you in a few days, so I’m going to go ahead and close
   this thread for now. But if you’d like us to assist further, please feel welcome
   to continue the conversation.
 * Thanks!

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

The topic ‘Short code’ is closed to new replies.

 * ![](https://ps.w.org/wpforms-lite/assets/icon.svg?rev=3254748)
 * [WPForms - Easy Form Builder for WordPress - Contact Forms, Payment Forms, Surveys, & More](https://wordpress.org/plugins/wpforms-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpforms-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpforms-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wpforms-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpforms-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpforms-lite/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ralden Souza](https://wordpress.org/support/users/rsouzaam/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/short-code-167/#post-18422772)
 * Status: resolved