Wordpress: Separate meta fields vs single array field -



Wordpress: Separate meta fields vs single array field -

i have 200 fields in single post. wondering if set them 1 single field array or multiple fields. single array has lot of work done getting value unlike separate fields. advisable big site?

it depend on management requirements too. if person editing custom field huge array in they'd need technical knowledge.

if management isn't of import you're improve off storing info in 1 field cut down number of times you'll firing get_post_meta() function. code much faster if parse value array , work it.

alternatively, if you'll need little number of these values improve run get_post_meta() couple times retrieve , work entire array.

you can test both scenarios using this method.

arrays wordpress multidimensional-array field metadata

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -