How to change the ID of a Meta Box field

How to Change the ID of a Meta Box Field

Have you had a ton of posts that contain data on your custom fields? For any reason, you may want to change the ID of the custom field without having an effect on existing data. But, if you only change the ID of the field from the field group settings, the data in the field will be lost. So, how does the data remain intact when changing the field ID? Let’s find it out.

Continue reading "How to Change the ID of a Meta Box Field"

How To Store Cloneable Fields In Multiple Rows In The Database

How to Convert Cloneable Fields to Store Values in Multiple Rows in the Database

Normally, the data saved in a custom field is stored in one row only in the database, even when it is a cloneable or repeater field. Storing values in a row helps reduce the database size, but it’s so difficult to query posts by cloneable fields' values. Then, we should convert its data to be stored in multiple rows. It helps to improve query performance and brings some other benefits in terms of management and flexibility in expanding and updating data. Let’s follow this tutorial to learn how to do it.

Continue reading "How to Convert Cloneable Fields to Store Values in Multiple Rows in the Database"