Linto P D Linto P D - 3 years ago 86
PHP Question

How can i get the image path in wordpress

Iam developing a theme for wordpress.And i have many images in 'images' folder.But when i take the page in browser its not comming

My code is

index.php



<ul>
<li><a href="#"><img src="images/mindset.jpg" width="145" height="32" /></a></li>


Is there any function for getting the image path in wordpress ?

Answer Source
src="<?php echo base_url()?>your_theme_dir/image_dir/img.ext"

As well

src="<?php bloginfo('template_url'); ?>/image_dir/img.ext"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download