[wp-hackers] Meta boxes and post metadata

Radi Varbanov aparoph at gmail.com
Wed Feb 20 16:05:18 UTC 2013


Hi Everyone,
First time posting here, so please bare with me :)

I am working on a site that is using the Yoast wpseo plugin and noticed
that even if you leave the SEO fields empty the plugin will store an empty
row into the wp_postmeta table. That made me think about how I should use
meta boxes.

So my question is:
When I use custom meta boxes should I also insert empty rows into the
wp_postmeta table or I should check to see if the fields is empty and if it
is, do not store anything? With small websites that my be not a problem but
when you have 50k+ posts and have ~10 custom post meta boxes and 11 form
the SEO plugin that adds up very fast.

Thanks,
Radi.


More information about the wp-hackers mailing list