I have a meta box on page
post type which contains a page builder. So, as a whole this can contain kind of a lengthy data. (text, urls...etc).
What I'm currently doing is, getting that whole data to a multidimensional associative array and store it in a single field of the wp_postmeta
table. So, it'll be stored as a serialized string.
But, I'm in little doubt that, if somehow the page builder data can be too large to fit in a single column of wp_postmeta
and it'll break the website.
So, I'm thinking of creating a custom table like page_builder
and store all the data of the page builder metabox in that table.
So, is it possible ? Is it good practice ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire