PDA

View Full Version : Rewrite 7 line syntax for WordPress template


whatsthebigidea
Aug 22, 2010, 05:03 PM
I'm trying to embed a WordPress plug-in shortcut function within another:


<img src="<?php
$url = '<?php if(function_exists('get_custom_field_data')) {
get_custom_field_data('web', true);
} ?>';
$width = 300;
echo bm_mshot ($url, $width);
?>" />

Any direction is appreciate.
Thanks

yesbeckjs
Jan 10, 2011, 12:39 PM
Are you able to nest the <?php tags like that? I have not used Wordpress but in standard php, that will fail.