WordPress- Get Image Path Relevant To Theme


/ Published in: PHP
Save to your folder(s)

Just pop this in your IMG tags


Copy this code and paste it in your HTML
  1. <img src="<?php bloginfo('template_directory'); ?>/images/XXX.jpg" title="" alt="" />

URL: http://www.brightcherry.co.uk/scribbles/2008/09/19/wordpress-get-image-path-relevant-to-theme/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.