PHP function within echo?

poe8989

New member
I'm new to php but i can maneuver around it and manipulate it on a basic level. Im using wordpress and a plugin that i need to only show on home page. I need it to create a <div> with a backgound, and then another div to hold the plugin function. The two divs appear as expected, but the plugin doesn't. Its a scrolling banner.
The problem is, apparently when i put the function inside the divs, it doesnt work. Here is the code:

<?php if (is_front_page())
echo '<div id="billboard_bg">
<div id="billboard_banner">
<?php echo the_uds_billboard(); ?>

</div>
</div>';
?>

I tried a few methods but it still doesnt work. Please help, but remember I'm not too fluent in PHP. Thanks alot!
 
Back
Top