WordPress.org

Ready to get started?Download WordPress

Forums

RSS Feed Help (2 posts)

  1. jnieves2
    Member
    Posted 5 years ago #

    Is there anyway for me to add RSS feed to all my category pages based on that category? Example: I currenlty have a breaking news RSS feed on my main page but I also have categories like Business, Politics, and etc. I would like to put a business RSS feed on the Buisness page and a Politics RSS feed on the Politics page and etc. Please feel free to view the site so that you can give me your feed back.

    Thanks in advance,
    Joaquin

    http://www.i-thinknow.com

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Try:

    <?php $this_category = get_category($cat);
    $this_feed = get_category_feed_link($this_category->cat_ID,'');?>
    
    <a title="Subscribe to this category's news feed" href="<?php echo $this_feed;?>">RSS Feed for <?php echo single_cat_title(); ?></a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags