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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -