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.

Recommended

How to add rel=”nofollow” to links with preg_replace()

Adding rel="nofollow" to external link is a good SEO practice.

Settembre 22, 2015

Social buttons: the fastest way for WordPress, without plugins

NOTE: the code in this post is written for WordPress but you can easily translate it in any language. You’re here…

Settembre 15, 2015

Optimize WordPress, a long list of tips

In the above image you can see your WordPress before reading this post, and after the optimizations you will make…

Limit the number of categories for posts in WordPress

CHOOSE ONLY ONE CATEGORY WORDPRESS If you need to limit the number of categories used by the authors of your…

Settembre 14, 2015

Remove archive pages in WordPress, how to

I think that in most blogs (that is not all) archive pages are redundant content and there’s no need to…

Settembre 8, 2015

WordPress anyone can register, but no email confirmation

Many times it has happened to me that my WordPress installation properly send emails using wp_mail directly, specifing also the…

Agosto 25, 2015