I'm having a bit of a problem with the
bloginfo() function in Wordpress which I've never had before.
Normally I use
<?php bloginfo('template_directory'); ?>/rest of image link here
but for some reason now it doesn't work. When I view source, it's not echoing out the link like it's supposed to and it just comes out as
"src="/images/pic name here"
I've tried using
I saw a post on SO that tried to somehow concatenate
get_bloginfo() with the link like this:
<img src="'.get_bloginfo('stylesheet_directory').'/link here etc...
This didn't work either.
I'm sure I can probably hard-code it but that kind of defeats the purpose. No matter how I do it, it does not display the image, just the
alt attribute text.
The weird thing is that I define my external assets the same way, like this for example:
<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/scripts_n_css/css/default.css" type="text/css" media="screen" />
Any ideas as to what's going on? Thanks in advanced.
If you take a look at this site I'm working on, http://www.islandlivingpatio.com/?page_id=48, the images don't load up. When I inspect with FireBug, it says "failed to load given url" but it works on my localhost.
This is what the code to produce the site's image and the URL it goes to looks like:
<a href="<?php echo bloginfo('url');?>/?page_id=775"><img src="<?php bloginfo("template_directory");?>/images/Lynx.gif" alt="castandtubular"/></a>
When you click that image's alt attribute (it's the only thing showing up) then the next page also fails to load the images.
Any ideas as to what's going on?