You can combine all these filters into one url and really fine tune your results if you wanted to. Let’s say you want to show your 10 most recent posts filtered by the “book” category (label, tag). Your feed url would look something like this:
http://YOUR-BLOG-NAME-HERE.blogspot.com/feeds/posts/default/-/cure/?max-results=10
Another example would be to show 10 most recent posts filtered by a date range:
http://YOUR-BLOG-NAME-HERE.blogspot.com/feeds/posts/default/?published-min=2008-01-
16T00:00:00&published-max=2008-02-28T23:59:59&max-results=10
Here’s a list of all the query parameters you can change for any Blogger rss feed. I wouldn’t worry about the “alt” one but the rest are pretty useful to know.
- alt - the type of feed to return, such as
atom
(the default) orrss
. - orderby - the order to return entries, such as
lastmodified
(the default) andstarttime
. - max-results - the maximum number of entries to return.
- /category - specifies categories (i.e. labels) to filter the feed results. For example, http://www.blogger.com/feeds/blogID/posts/default/-/Fritz/Laurie will return entries labeled with Fritz AND Laurie.
- updated-min, updated-max - the bounds on entry update dates.
- published-min, published-max - the bounds on entry publication dates.
- start-index - 1-based index of the first result to be retrieved (for paging).
Now that you are familiar with all your rss feed url options, you can really customize your Blogger recent posts and comments sections. Many of you have asked me how to increase your feed limit from 5 to 10 so now you can. In some cases I had to completely delete my recent comments widget and install it again for the filters to correctly work. I’m not sure why but you might run into a similar issue.
No comments:
Post a Comment