php xml simple problem -
i have php code wordpress theme
<?php .... $image_source = bloginfo('template_url').'/timthumb.php?src='.$slider_images[$i].'&w=940&h=400&zc=1'; echo "<image source='".$image_source."'></image>"; .... ?>
and expected result :
<image source='http://...timthumb.php?... .png'></image>
instead of :
http://... <image source='/timthumb.php?.... .png'></image>
the bloginfo function prints it's results directly. see reference.
what happens when set $image_source
bloginfo prints http://...
, returns void. void value concatenated image url '' . '/timthumb..
. print text <image source...>
.
you should use get_bloginfo instead
Comments
Post a Comment