Commonly, to display the category or label, all the names of the category or label those are displayed. So, is there any way to display category or label based on the category or label name? The answer is yes, there is.
Displaying category or label based on the category or label name is considered to be more interesting because it’s more specific, e.g. a blog has categories of economics, politics, entertainment, and so on.
The first step to prepare is defining the categories or labels that you want to display, record or copy paste the category or label names, e.g. politics, etc. For the categories or labels consist of more than one word (have the space between) should be added with %20 (to replace the space), e.g. blogger tutorial, becomes:
blogger%20tutorial
Another thing you should know is the label names are case sensitive, e.g. blogger%20tutorial is different from Blogger%20tutorial.
The second step is preparing the feed address for category or label names to display, following the basic format as below:
http://yourblogname.blogspot.com/feeds/posts/default/-/label_name
For instance, Kang Rohman’s blog has the URL as http://www.blogspottutorial.com and label name to display is blogger%20tutorial, so the feed address for that label name is:
http://www.blogspottutorial.com/feeds/posts/default/-/blogger%20tutorial
The following is how to display category based on the label name in Blogger:
- Login to blogger with your ID.
- Click Design.
- Click Page Element if you are not yet in this position.
- Click one of the Add a Gadget links.
- A new window will pop up and click the sign plus ( + ) for Feed.
- Enter the feed address you have prepared before. For instance, please enter the feed address below:
http://www.blogspottutorial.com/feeds/posts/default/-/blogger%20tutorial
- The options will appear. Here, you can change the title, the number of posts to display (max 5 posts), and more.
- Click SAVE.
- Done.
To display the other categories, you only need to repeat the above steps, of course, with the feed addresses of your own blog.
There is another variation you will get in above technique, i.e. the display order can be based on the latest updated posts.
http://yourblogname.blogspot.com/feeds/posts/default/-/nama_label?orderby=published
Although the posts have been very long or old, but if they are re-updated, they will be displayed in the top.
No comments:
Post a Comment