Some more advanced WordPress themes and post-based plugins make use of WordPress Custom Fields. Recently, whilst developing a custom WordPress plugin, I realised I needed to edit custom fields across 30 different posts.
I had two options:
But then I found a plugin which would make it much easier, without having to edit each post individually – or get my hands dirty with Phpmyadmin.
Custom Field Bulk Editor by SparkWeb Interactive Inc is a free WordPress plugin which allows you to bulk edit custom fields from the WP-Admin backend interface.
The key features which make this plugin so good are:
Example scenario
I created a custom post type called ‘Portfolio’ via a plugin. One of the custom fields was called ‘length’. It recorded a value as a string for the duration of the project (eg. 1 Week). However, in a second iteration of the plugin I needed to change the name of this custom field to ‘duration’.
Since the site where I was using this plugin already had 30 posts with the custom field ‘length’ I wanted a simple and automated process to change ‘length’ to ‘duration’ whilst keeping the varying custom field values.
By using Custom Field Bulk Editor I can change the custom field key ‘length’ to ‘duration’ in a matter of seconds. It also changed the values directly so there was no duplicated custom fields for each post. This was important for me to avoid unnecessary bloat in my WordPress database.
The benefits of Custom Fields Bulk Editor over alternative methods
My example scenario was very simple, and in all fairness it could have been achieved through MySQL queries and Phpmyadmin. But, for those who are not confident with MySQL, this plugin offers a clean and simple-to-use GUI to carry out the same tasks.
In addition, making multiple changes to multiple fields across multiple (selected) posts can become complicated when actioned through MySQL queries. Again, this custom fields editor plugin makes it easy to carry out the more complicated tasks.
Where can I use it?