• Resolved reznickovan

    (@reznickovan)


    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 for
    hundreds 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

    (@rsouzaam)

    Hi @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:

    I hope this helps! Let me know if you have any questions or need further assistance with WPForms Lite.

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @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.