What is the best way to display/dump all custom fields associated with a post? It doesn’t have to be pretty, I just need to verify what is being saved in what field array for debugging.
Leave a Reply
You must be logged in to post a comment.
What is the best way to display/dump all custom fields associated with a post? It doesn’t have to be pretty, I just need to verify what is being saved in what field array for debugging.
You must be logged in to post a comment.
you can use get_post_custom() which returns a multidimensional array with all custom fields of a particular post or page:
get_post_custom($post->ID) is what you need