WordPress.org

Ready to get started?Download WordPress

Forums

link to feed in category archive page (4 posts)

  1. carnaticwm
    Member
    Posted 8 years ago #

    Greetings,

    In the default template, consider providing link to feed in category archive template.

    e.g., in http://www.kishore.org/blog/category/carnatic/ consider changing the text the sidebar from "You are currently browsing the archives for the carnatic category." to "You are currently browsing the archives for the carnatic category. A feed is available as well" etc. (link the feed to http://www.kishore.org/blog/category/carnatic/feed/)

    Cheers, Kishore.

  2. shedevil
    Member
    Posted 8 years ago #

    Please please forgive me for following up to this post, but I can't find the "post" button *anywhere* to start a new thread! Is it just me? I am having that problem in both Safari and Firefox! Obviously some people, such as carnaticwm, have found it!

    Anne

  3. carnaticwm
    Member
    Posted 8 years ago #

    How to start a new thread:
    1) goto http://wordpress.org/support/
    2) there are 3 sections: Hot Tags, Latest Discussions, Forums
    3) select the right forum where you want to start a new topic
    4) you will be at http://wordpress.org/support/forum/4 - if you clicked on requests and feedback
    -> all the fresh topics are displayed on the top
    -> "New Topic in this Forum" section is below these fresh topics

    Maybe it is hard to "start a new topic" because ..Before posting a new topic, be sure to search to see if one has been started already..

  4. mlmedia
    Member
    Posted 8 years ago #

    If you are using nice permalinks, I have an automatic way to put feed links on each archive pages. Instead of writing-out the text for the feed as suggested above, try using the following code:

    <a href="feed:<?php bloginfo('url'); ?>/category/<?php echo single_cat_title(); ?>/feed/"

    For example, if you have a category called "Books" the link above should automatically produce the link for:

    feed://www.example.com/category/Books/feed/

    Obviously if you set up your permalinks differently for categories, then you have to customize it accordingly. I'm not sure how it would work using the default links.

    Now, this has a minor glitch in that when you click a date-based category and then click the feed link, it defaults to the Atom feed for the entire site. Harmless, but it may be annoying to you.

    Maybe someone else can tell me how to use an If..else argument to get the feed link only on category archives? I'm actually a newbie to coding.

Topic Closed

This topic has been closed to new replies.

About this Topic