Table of Content

HomeBlogPlugin UsageHow to add WordPress custom fi...

How to add WordPress custom field / meta key and Bulk edit post meta / custom fields key in WordPress?

Add WordPress meta key / custom field to WordPress bulk posts editing plugin enables you to have access to them for bulk editing or filtering.

You can add as many custom fields as assigned to your posts in the WordPress custom field to our plugin as shown in the below picture:

Custom fields in WordPress bulk post editing plugin

Add custom field / meta key to WordPress bulk posts editing plugin

To add custom field / meta key to WordPress bulk posts editing plugin, you need to open “Meta Fields” tab by going to below address:

WordPress Dashboard > Pro Bulk Bundle > WP Posts  > Meta Fields

As shown in the below picture, you can add custom fields manually or automatically from a post:

Add custom fields automatically in WordPress bulk post editing plugin

Add WordPress post custom field manually

To add a WordPress post meta field manually, you need to type the name of the custom field in the text box exactly according to the name assigned to the posts in the WordPress, then click on the “+” button.

For example, as we have assigned “Publisher” and “Review” to our posts in the WordPress:

Add custom fields manually in WordPress

We have added them to our plugin by doing below actions:

  • Type “Publisher” in the text box under “Manually” field
  • Click on “+” button
  • Type “Review” in the text box under “Manually” field
  • Click on “+” button
Click on plus icon to add custom field

As soon as clicking on “+” button, a custom field will be added to the opposite box and you can:

  1. Edit the name of the custom field. 

For example, we typed “Publisher Name” in the text box in front of the “Publisher” custom field

  1. Specify how the values related to this custom field to be displayed or edited in our plugin.

You have to choose one of the below items:

  • TextInput
  • Checkbox
  • Radio
  • Array
  • Calendar
  • Email
  • Password
  • URL
  • Image
  • File
  • Editor
  • Select
Custom field types in WordPress bulk post editing plugin

For some of them, you can assign other options to be displayed. For example, it is possible to choose “Text Input” to be displayed either as a “String” field or “Number” field as we did for the below Meta keys:

  • Publisher name: TextInput > String
  • Review: TextInput > Number
Text input option in WordPress bulk post editing plugin

To better understand how to assign the right item to your custom field, we are going to make some examples in the next step.

  1. Change order or delete the custom fields

If you add more than one custom field, you can easily “Change their Order” or “Delete” them by using the related Icon in each field.

For example, in the below picture we drag the “Review” field and tried to drop it above the “Publisher” custom field:

Change custom field order in WordPress bulk post editing plugin

Add custom field automatically from a post

If you need to add some custom fields related to a post to our plugin, you just need to type the post “ID” in the text box under this field and then click on “+”.

For example, we typed “1316” and clicked on “+”, so the custom fields assigned to those posts were displayed in the opposite box:

Add custom field from post

Then by clicking on “Save Fields”, you have access to those custom fields in the plugin:

  1. Bulk Edit Form.
  2. Filter Form.
  3. Column Profile.

Bulk edit post meta in WordPress

By clicking on “Bulk Edit” tab, you can see the “Custom Fields” tab as shown below:

Custom field tab in WordPress bulk post editing plugin

As we expected, all the custom fields we added in the “Meta Fields” tab displaying here. Now, let’s check how those Options are helping us to bulk edit these custom fields:

TextInput :: String

As we assigned “TextInput” as a string option to the “Publisher”, we have now access to the condition box including:

  • Append: to add value at the end of publisher name
  • Prepend: to add value at the beginning of publisher name
  • New: to replace the whole name by a new one
  • Delete: to remove some part of publisher name 
  • Replace: to replace some part of publisher name
Publisher name's condition box

TextInput :: Number

For the “Review”, as we assigned “TextInput” as Number, we have access to the items in the condition box which are related to editing its value as a number including:

  • Set New: Replace the current value by a new number 
  • Clear Value: to remove the value
  • Formula: to change the number according to a formula
  • Increase by value: to increase the number by a value 
  • Decrease by value: to decrease the number by a value
  • Increase by %: to decrease the number by a value%
  • Decrease by %: to decrease the number by a value%
Review rate's condition box

Some other options including below:

  • TextArray
  • Email
  • Password
  • Website

Are the same as “TextInput”, so, there is no need to explain them again, you can just choose the right option and enjoy editing the values related to them in an easy and effective way.

The other options available in the custom field tab, are displayed as below in the bulk edit form:


If you choose the checkbox, a combo box will be assigned to that meta key. So you have to choose one of the values from the drop down list to bulk edit the custom field.

For example,  we added “Is educational post?” as a custom field and assigned checkbox to it:

Check box example in WordPress bulk post editing plugin

So, when we opened bulk edit form, a dropdown list including “Yes” or “No” option, had been created:

Drop down list in WordPress bulk post editing plugin


If you assign “Calendar” type to your custom field values as we selected for “Date of publishing next post”, you can edit them as a date by a calendar in our plugin:

Filter by calendar

As shown below, when you need to bulk edit this custom field, a calendar will open and you can pick a date for it:

Calendar option

Now, you have completely learned how to assign the right condition to the custom field. It’s time to check how to use these custom fields in other parts of our plugin.

Use meta fields in column manager and column profile

All of the added custom fields are available in “Column Profile” form, which enables you to add/remove each of them to / from the post table.

For example, by adding “Publisher Name”, “Review Rate” and other meta keys under the custom fields part in the “Column profile”, as we did below:

All of them were displayed in the post table:

Add column from column profile
Result of adding columns

Use meta fields in filter form

You have also access to the “Custom Fields” in the “Filter Form” to filter the posts according to their custom fields values and then bulk edit any other features.

The items available in “Filter Form” depend on the type that you have assigned to that custom field. 

For example, as we assigned Textinput > String to the “Publisher”:

We are now able to select one the below option as the condition to filter our preferred posts, related to that custom field:

  • Like
  • Exact
  • Not
  • Begin
  • End
Filter by publisher name

For “Review Rate” field, as we assigned Textinput > Number, we are able to filter the custom post by selecting a range of numbers for example from 2 to 5:

Filter by review rate in WordPress bulk post editing plugin

Now by clicking on “Get posts”, the WordPress custom posts will be displayed in the post table:

Filtered posts

Bulk edit WordPress meta fields

We are also able to bulk edit these WordPress custom fields as we described earlier. For example, It is possible to delete “ID” from the publisher name as following:

  • Click on “Bulk Edit” button
  • Go to “Custom Field” tab
  • Choose “Delete” from the condition box
  • Select “ID” from the variable box
Delete by ID
  • Click on “Do bulk Edit
Result of deleting by ID

We completely discussed WordPress bulk editing before, you can simply edit the value of the columns displaying in the post table by a few clicks at the same time.

How to add custom meta fields in WordPress?

On the WordPress post edit, go to custom field meta box. Click on “add custom field” button. Enter the name and value of you custom field and update it.

Like this tutorial?

Do you still have a problem?

If you still have unanswered questions or need custom work for your plugin, contact iThemeland Support.


Notify of
Inline Feedbacks
View all comments