[Resolved] Put a function inside an echo?
Is it possible to have the title display inside an echo statement, I’m not sure I’m doing this correctly or if it’s possible at all.
This is all I have found on the forums here;
I’d like the image alt to to be the title if possible.
Would it be something like?
<?php $spost = single_post_title(); ?> <?php ... echo "<img src='/wp-content/themes/default/timthumb.php?src=" . $image . "&w=600&zc=0' alt='$spost' />"; ?>
- The topic ‘[Resolved] Put a function inside an echo?’ is closed to new replies.