mabuc
says
hello all,
I created a widget tab that pulls a data from a custom field but get_post_meta don’t seem to display.. How do you guys do that.. any help from you is appreciated! 
hello all,
I created a widget tab that pulls a data from a custom field but get_post_meta don’t seem to display.. How do you guys do that.. any help from you is appreciated! 
mabuc said
hello all, I created a widget tab that pulls a data from a custom field but get_post_meta don’t seem to display.. How do you guys do that.. any help from you is appreciated!![]()
its because your trying to use the get_post_meta outside of the loop….
<?php global $wp_query; $postid = $wp_query?>post->ID; echo get_post_meta($postid, 'CUSTOMFIELD', true); ?>
OrganicBeeMedia said
mabuc said
hello all, I created a widget tab that pulls a data from a custom field but get_post_meta don’t seem to display.. How do you guys do that.. any help from you is appreciated!![]()
its because your trying to use the get_post_meta outside of the loop….
<?php global $wp_query; $postid = $wp_query?>post->ID; echo get_post_meta($postid, 'CUSTOMFIELD', true); ?>
yes, thanks for the help it works 
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.