Quote:
Originally Posted by hulker
Something like this should work php wise :
<?php
$postMeta = get_post_meta($post->ID, '_wpb_video', true);
?>
flowplayer('[flowplayer src=<?php echo $postMeta ?>]');
|
that returns the correct code
Code:
flowplayer('[flowplayer src=/2/2E/2EBBC2H3H0/8/0/7/1/c11708/fb43ba21e2/11708_01/01/11708_01_120sec_00.mp4]');
but as text if I php this flowplayer('[flowplayer src=<?php echo $postMeta ?>]'); it shows the player but doesnt pull the correct url for the vid it returns sitename.com/<?php... as the video
Quote:
Originally Posted by Colmike7
<?php
flowplayer('[flowplayer src=<?php echo get_post_meta($post->ID, '_wpb_video', true); ?>]');
?>
You're getting the parse error because you are trying to php echo inside an already open php call.. Try to concatenate the strings instead. 
|
Seems when I try and return the string I can get the code.. but then it doesnt treat the flowplayer as php it shows as text.
Serves me right for trying to be clever.. hehe.