I need to retrieve the meta value from db to the custom meta box I've created.
Here is my code.
function wpl_owt_book_function( $book ) {
define("_FILE_", "_FILE_");
wp_nonce_field( basename(_FILE_), "wp_owt_cpt_nonce");
echo "<label for='txtPublisherName'>Publisher Name</label>";
$publisher_name = get_post_meta($post->ID, "book_publisher_name" , true);
echo "<input type ='text' name = 'txtPublisherName' value = '<?php $publisher_name; ?>' placeholder = 'Publisher Name' />";
}
The result output from the text box makes place holder as <?php and outside the text box ") placeholder = 'Publisher Name' />"
Can anyone look into this matter and give me a solution please!
Have a great day!
echo "something " . $foo . " something";.