Get all postmeta data in wordpress

0.64K views
no comments
28 Aug 2015 2:28 am

This function get_metadata is useful when needs to get alot of post_meta of post or page. Because if get post meta one by one from get_postmeta function then get_postmeta will consume too much time.

$post_id = get_the_ID();
$all_post_meta = get_metadata( 'post', $post_id, '', true);

NOTE:Your Email Address will be not shown and please do not add spamming comments because here is REL="NOFOLLOW" on your links and comments also moderated shown.
<code>Put html css or any language code under this tag</code>