how to write PHP inside PHP?

Goobery

New member
I have the code

<?php wp_swfobject_echo( "data", "width", "heigth"); ?>

but I need to place this code where the word data is:

<?php echo get_post_meta($post->ID, 'flash-url', $single = true); ?>

when I place it in like this, the inline php does not work, how would go about making this work

Thanks
 
try:

<?php

$data=get_post_meta($post->ID, 'flash-url', $single = true);

wp_swfobject_echo( "$data", "width", "heigth");
?>
 
Back
Top