How to remove custom fields from WordPress

Ok. You’ve added custom fields in wordpress, but how can you remove them? How to delete custom fields wordpress Two…

Settembre 29, 2013

delete old custom fields from posts in wordpress

Ok. You’ve added custom fields in wordpress, but how can you remove them?

How to delete custom fields wordpress

Two ways:
1) open your phpMyAdmim and search in the wp_postmeta table all the records that match your custom field name in the “meta_key” field and delete them. You can do a query like this:

DELETE FROM  `wp_postmeta` WHERE meta_key = 'test_field'

Just change “test_field” with the name of the wrong custom field that you want to remove.
2) if you don’t understand sql and phpmyadmin, look out for a plugin that handles custom fields to remove them.

Author

PHP expert. Wordpress plugin and theme developer. Father, Maker, Arduino and ESP8266 enthusiast.