HOME / BLOG / BLOG-POST

How to display custom meta box in wordpress?

Display custom meta box in wordpress

First generate meta box code and then add this code where you want to display –

<?php  
$custom_meta_data = get_post_meta( get_the_ID(),'custom_meta_box_id_' ,true); 
?>
<?php echo $custom_meta_data; ?>
// here custom_meta_box_id_ is the meta box field id

 


about authors

Sandip Das

Web Developer

Once a legend said “Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” – Martin Fowler.



POST COMMENTS

Leave a Reply

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