Rename ID Field on Flywheel

Support General Rename ID Field on FlywheelResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #45805
    SolaceSolace
    Participant

    Hi! I read through various posts in the forums about renaming the id field and it's all very straightforward in PhpMyAdmin but I'm using Flywheel, and they have a custom database manager: https://getflywheel.com/wordpress-support/php-on-flywheel/

    I tried changing the meta_key but the post fields keep breaking (showing empty). I changed the highlighted part (to correct the misspelled id) https://snipboard.io/PdhW1v.jpg, but I lost all data, including the fields. I also changed it other locations but still no luck: https://snipboard.io/ziFELP.jpg. Any thoughts on how to tackle this?

    #45811
    PeterPeter
    Moderator

    Hello,

    Please don't change the field ID directly in the meta_box key, it is the field group settings. You can follow the article below to change the field ID on your site
    https://metabox.io/changing-meta-box-field-id/

    #45815
    SolaceSolace
    Participant

    Peter, I did follow that exact article and ran the SQL query but it doesn't work. It says the command has been executed but when I go back and look at the id it's still the same. Do I need to adjust the query parameters?

    #45822
    PeterPeter
    Moderator

    Hello,

    What is the SQL query that you run in the database? Here is an example:

    UPDATE wp_postmeta SET meta_key = 'testimonials' WHERE meta_key = 'testinimonials'
    

    change the database prefix wp_ with the prefix in your database.

    #45827
    SolaceSolace
    Participant

    That's exactly what I used. I did change the wp_ prefix to what it actually is but it still doesn't work.

    #45829
    PeterPeter
    Moderator

    Hello,

    Please share your site credentials by submitting this contact form https://metabox.io/contact/
    I will take a closer look.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.