• I’m trying to keep the categories as nearly virtual separate blogs.

    I’m really liking word press (particularly the RSS feature) but there doesn’t seem to be a way someone can get an RSS feed for all posts in an individual category.

    I’ve searched the codex without finding it. If this feature already exists I would apprecaite a pointer. Otherwise I would like to make it a feature request.

    Thanks,

    Dewey
    [email protected]

Viewing 4 replies - 31 through 34 (of 34 total)
  • moshu

    (@moshu)

    Didn’t Otto said quite clearly:

    “This must be in the loop. It will spit out the names of the categories, comma separated, with each name being linked to its feed.”

    singleton

    (@singleton)

    In trying to debug the code I put echo $cats and got Array, I put echo $num and got 1 (I have 7 categories), and inside the loop I did an echo of $cat and got nothing

    I tried using the header code that TyskJohan posted, and it all works, but I get the following error message….

    Warning: Missing argument 3 for get_category_rss_link(), called in /home/…/wp-content/themes/…/header.php on line 20 and defined in /home/…/wp-includes/feed-functions.php on line 115

    I have really no idea what that means… Can anyone please help??

    I wanted to have a list of feeds per category outside the loop. Therefore I did:

    <?php
    global $wpdb;
    $cats = $wpdb->get_results("SELECT *
    FROM $wpdb->categories ORDER BY cat_name");
    foreach ($cats as $cat) {
    echo '<li><a href="baseurl/category';
    echo $cat->category_nicename.'/feed/">';
    echo $cat->cat_name.'</a></li>';
    }
    ?>

    I whipped it in a plugin for anyone who cares
    https://www.bos89.nl/1169/

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘RSS feed for each category’ is closed to new replies.