Skip Navigation

[Resolved] Store Custom Field Data in Serialized Array

This thread is resolved. Here is a description of the problem and solution.

Problem: Is it possible to optimize custom field information in the database using serialized data structures?

Solution: At the moment checkbox groups are managed with serialized data, but other field types are stored as independent rows in the database.

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by viktorI 7 years ago.

Assisted by: Christian Cox.

Author
Posts
#586737

Hello,
for database and performance issue, i would like to know if its possible to store custom field data in serialized array rather than using rows ? i build a lot of custom fields and see potential problem in the future where data is going bigger

Thanks

#586912

Great question, but unfortunately Toolset only supports serialized data for one field type - checkboxes groups. The rest of the core code is designed for row-based custom field data as in standard WordPress postmeta fields.

#588193

noted