Changing Custom Fields names (3 posts)

  1. krembo99
    Posted 7 years ago #

    Is there a way to batch change the custom fields names without direct SQL query ?

    I have about 100 posts, and i want to change One of the 4 custom fields name's without having to change all the posts again ??

  2. jeremyduffy
    Posted 7 years ago #

    I would probably wire the SQL code on a PHP page instead. That way I have access to all the wordpress functions for dealing with the tables.

    For example, I needed to change something in all my posts so I wrote the query in a test.php file in my blog. When I ran it, I printed the results to see how they'd look then I executed it.

    In my case, I was changing all the image extensions in my posts from .png to .jpg

  3. omgitztrey
    Posted 7 years ago #

    Doing a REPLACE query 'direct SQL' seems to be the only plausible thing -- unless there's a plugin that exist.

    You obvsiouly know all the meta is under the wp_postmeta

Topic Closed

This topic has been closed to new replies.

About this Topic