wordpress how to get/show custom field value of the posts!

Here is the code .. through this you can get custom fields value from the posts in wordpress …

<?php echo get_post_meta($post->ID, 'key', true); ?>

 

custom field value wp

 

Like in above image… you can apply like this

<?php echo get_post_meta($post->ID, 'nst_hide_featured', true); ?>

 

this will return value “No” from the posts…. you can apply like this for others to show the output..

 

For any help contact me here..

If this help you then.. Can you buy a Cup of Coffee for me by nst webcreation paypal--OR-- nst webcreation blog coffee cup

Published by

NST

Myself Narender Singh Thakur ( NST ) and i share my Experience/Knowledge and Tricks for folks and beginners to solve their issues while making websites through this Planet.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Click to Chat