I have this part of the code of a plugin, which continues and has much php before it, fluidly without the ?> till the end of all the code.
function fivu_thumbnail_meta_box_html() {
echo '<label for="featured_image_url">';
_e("URL of featured image", 'fivu_textdomain' );
echo '</label> ';
echo '<input type="text" id="featured_image_url" name="featured_image_url" value="" size="30" />';
}
What i need is to change the input value="" (5th line) to this:
value="<?php get_post_custom_values("Poster"); ?>"
But as i am inside of an echo, the php is not interpreted as php but as normal text. ¿What can i do to make the php inside of the echo not to be interpeted as normal text?
EDIT: Ok, i am using
echo '<input type="text" id="featured_image_url" name="featured_image_url" value="' . get_post_custom_values("Poster") . '" size="30" />';
But i forgot, lol, i need to echo the value. So how do i add: echo $values[0]; ?