bloginfo / RSS feeds
-
None of the <?php bloginfo(‘rss_url’); ?> tags seem to be working (including the atom and rss2 tags) — it produces a URL like domain.com/index.php/feed/, which doesn’t validate as a live feed. Hard-coding the feed as domain.com/wp-feed.php works, but I’d rather not hardcode if I don’t have to.
Any ideas?
-
In the header section of your main blog page make sure your feed information looks like the following:
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/rdf+xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”service.feed” type=”application/atom+xml” title=”Atom0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
i also have rss feed problems!
when i click to the link, it said “feed is not a registered protocol” what does that mean? thankssee this forum thread for help.
If you post a link to the site in question, people will be more able to help as they can see the problem.
I suppose I should mention that it’s WP 1.5.
The <link rel… etc> syntax is correct, it just produces the wrong feed URL.
In the header:
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />—————-
and the sidebar:- ” title=”<?php _e(‘Syndicate this site using RSS’); ?>”><?php _e(‘RSS’); ?>
- ” title=”<?php _e(‘The latest comments to all posts in RSS’); ?>”><?php _e(‘Comments RSS’); ?>
————–
Both of these produce the same feed URL (domain.com/index.php/feed), which is invalid. Like I said, hard-coding the correct URL works, but I wonder why the tags don’t. I don’t want my feed to break (again) should the URL dynamically change for whatever reason in the future.
let’s try that again:
sidebar:
<li><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li><li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
autumneve, the /feed/ permalinks do produce valid feeds. In fact, most of us them. If we had a link to your site, we could actually help you.
stchatterbox, the problem you are experiencing is due to the new (and not yet assimilated)
feed:protocol. This protocol should (technically) launch your favorite news reader and either subscribe to or check the feed for new articles. You can find removal instructions here: http://wordpress.org/support/topic/29291#post-164887There’s no need to be nasty.
http://autumneve.com/blog/index.php/feed/
http://autumneve.com/blog/index.php/comments/feed/
Both go to a blank page instead of the xml tree. Neither validate in feedvalidator.org, and return:
Server returned HTTP Error 304: Not Modifiedhttp://autumneve.com/blog/wp-feed.php validates just fine, however.
My apologies, I wasn’t trying to be nasty. You’re running into a bug with WordPress v1.5.1. Please upgrade to v1.5.1.2 to fix your problem (and a few security holes as well).
Thank you, it all seems to be working now.
plus, the XHTML link is not working either, any clues? thanks
OK, when I click on the “RSS” link at the bottom of my blog I get an error message that says “
This XML file does not appear to have any style information associated with it. The document tree is shown below.”Yet when I use a sidebar RSS reader add-on to FireFox I can see the entries, though the link that gets put into my bookmark files produces the same error as above.
How do I fix that or do I need to? I’m not sure I want people to see code by clicking on a link in the blog.
The bloginfo tags for rss_url, rss2_url and atom_url are broken for both name-and-date-based and numeric permalinks. Default permalinks work correctly. I haven’t tested custom permalinks.
This is in a completely generic installation of WordPress 2.0.4, except for the permalink option.
well no, in general they aren’t. But we’d love to see a link to help you troubleshoot your problem.
Here’s a link:
http://www.warmroom.com/unfinished/
Here’s the template code:
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />Here’s the source with Date-and-name-based permalinks:
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”http://www.warmroom.com/unfinished/feed/” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”http://www.warmroom.com/unfinished/feed/rss/” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”http://www.warmroom.com/unfinished/feed/atom/” />Here’s the source with default permalinks:
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”http://www.warmroom.com/unfinished/?feed=rss2″ />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”http://www.warmroom.com/unfinished/?feed=rss” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”http://www.warmroom.com/unfinished/?feed=atom” />I’ll leave the site with the Date-and-name-based permalinks. Anything else?
The topic ‘bloginfo / RSS feeds’ is closed to new replies.