What is the best way to store post meta in an array (using a custom write box, know how to do that) so that all post meta is in a single custom field?
Leave a Reply
You must be logged in to post a comment.
What is the best way to store post meta in an array (using a custom write box, know how to do that) so that all post meta is in a single custom field?
You must be logged in to post a comment.
From codex:
So
<?php add_post_meta(7, 'fruit', 'banana', 'apple', 'tornado', 'bob saget')
To grab them you can also use http://codex.wordpress.org/Function_Reference/get_post_custom_values
besides just
get_post_meta
.