custom field – save all acf options in one meta_value
Question
I have 5 meta values for each WordPress post and I’m using ACF for creating meta fields. I want to have just 1 meta value stored in DB instead of 5. I know it should be serialized but I don’t know how to achieve this, using ACF. Here is an example of what I want:
meta_key: some_example
meta_value: a:3:{s:10:"some_value";s:13:"another_value";s:17:"yet_another_value"}
0
2 months
2023-02-01T01:12:41-05:00
2023-02-01T01:12:41-05:00 0 Answers
0 views
0
Leave an answer