You continuously adding new content to your WordPress site, but do not know the way by which people can access it. At that time, a function name feed will be there to work as your saviour. Feed allows different feedreaders like Google, AOL, Digg to access a site by automatically looking for new content and then posting an update containing new content to another site. Having feed will open a whole new door in front of new users providing them an access to keep them up with the latest information posted all around the world in different sites. Some feeds include RSS, while other contains Atom or RDF files.
Where your feed URL located?
There comes the time when you want to share your site’s feed address or URL with someone, or you want to add your feed to different search engines or RSS directories. Possibilities lies beneath that there are four possible URLs for each of your feeds available, which can be:
- http://example.com/?feed=rss
- http://example.com/?feed=rss2
- http://example.com/?feed=rdf
- http://example.com/?feed=atom
But, it would be bit different if you are using custom-built permalinks:
- http://example.com/feed/
- http://example.com/feed/rss/
- http://example.com/feed/rss2/
- http://example.com/feed/rdf/
- http://example.com/feed/atom/
Understanding Built-in WordPress Feeds
WordPress by default comes with various pre-defined feeds which are generated by template tag for bloginfo() for each type of feed. These feeds you basically find located in either the sidebar and/or footer of most of WordPress themes. They will display recent updates as well as any changes to your site’s content as per different feedreaders.
URL for RDF/RSS 1.0 feed
1 |
<?php bloginfo('rdf_url'); ?> |
URL for RSS 0.92 feed
1 |
<?php bloginfo('rss_url'); ?> |
URL for RSS 2.0 feed
1 |
<?php bloginfo('rss2_url'); ?> |
URL for Atom feed
1 |
<?php bloginfo('atom_url'); ?> |
While, URL for comments RSS 2.0 feed
1 |
<?php bloginfo('comments_rss2_url'); ?> |
Feed Examples
Site comment feed
http://example.com/comments/feed/
Post-specific comment feed
http://example.com/post-name/feed/
Categories and Tags
http://example.com/category/categoryname/feed
Authors
http://example.com/author/authorname/feed/
Search
http://example.com/?s=searchterm&feed=rss2
Photo Credit: Flickr/Andrew Mager