Cell Phones - Free Advertising - Mortgages - Unblock Myspace - Home Insurance

PDA

View Full Version : HTML code help for my WordPress Blog


pharcyded
Feb 3rd 2008, 5:55 pm
This is what I have in my code for my wordpress blog subscribe link:

<a href="<?php bloginfo('http://devoted2gaming.com/feed'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="Subscribe to my RSS feed"></a>

The issue I am having is that when you click the image on my site it takes you to http://devoted2gaming.com/DeVOTeD 2 GaminG ...which is a link that does not exist. Why isn't it taking them to the feed link provided in the code? I don't understand! Any help would be appreciated. :confused:

Hob Bramble
Feb 3rd 2008, 6:40 pm
Well, have you looked at the HTML your code is producing?
<a href="DeVOTeD 2 GaminG"><img src="http://devoted2gaming.com/wp-content/themes/GamesBlog/images/rss.gif" alt="Subscribe to my RSS feed"></a>
All you should need to do is remove the php tags and bloginfo bit from the link - just have it link directly to the feed.

pharcyded
Feb 3rd 2008, 7:12 pm
ty ;)

+rep

YIAM
Feb 4th 2008, 12:52 am
The correct code would be

<a href="<?php bloginfo('rss2_url''); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="Subscribe to my RSS feed"></a>