Forums
Home / Fixing WordPress / Show the value of custom field
(@raider000)
10 years, 8 months ago
Hi
I am trying to output the value of my custom field.
I use <?php echo get_post_meta(get_the_id()); ?> but all I get is: ARRAY
<?php echo get_post_meta(get_the_id()); ?>
How can I fix this?
(@yatendra16)
Try This <?php echo get_post_meta(get_the_id(),’filed_name/meta_key’,true); ?>
Perfect, thank you!!!