• Hi everyone.
    I just recently started using WordPress (just like to say i’m really impressed!).
    What i’ve been doing to spread my news to different sites (of mine) is to use the feeds – and a little php script called z-feeder. This displays the feed in a very basic, changeable layout and this suits my need very well.
    i’ve used the zfeeder here and my wordpress blog is here
    What i’d like, though, is to be able to use the feeds from different categories, on different sites.
    Is this possible?
    Thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • This feature is already built into WP. Go into index.php and find the call to wp_list_cats.
    It probably doesn’t have any options right now, so add the following options so that the call now looks like:

    wp_list_cats('sort_column=name&optioncount=1&feed=RSS');

    The first option sorts the categories by name.
    The second option will list the number of posts in each category.
    The third option will give you the RSS feed for that category.
    If you don’t want to list the RSS feed but just use it, then you can simply point your browser to <site.com>/archives/category/<category>/feed and you will get the feed. This, of course, assumes you have permalinks enabled.
    Regards

    Thread Starter Usayd

    (@usayd)

    Thanks alot – the code works great, thanks again!

    I hope I’m not getting bad advice (I’m a newbie), but here’s what I did in order to have the categories’ RSS feed displayed:

    I went to /wp-content/themes/default/sidebar.php (I’m using Kubrick as theme in WP 1.5), and after…

    <li><h2><?php _e('Categories'); ?></h2>

    … I replaced…

    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>

    — with the code suggested by Cypher, so the line becomes:

    <?php lwp_list_cats('sort_column=name&optioncount=1&feed=RSS'); ?>

    More about wp_list_cats in Codex:
    https://codex.www.ads-software.com/Template_Tags/wp_list_cats

    Hope this helps ??

    Thread Starter Usayd

    (@usayd)

    yea i posted that before 1.5 so its a bit easier now with the codex and stuff, thanks

    I am using WordPress 2.01 and I would like to be able to post 1 RSS feed per category and hopefully have one feed for mutliple categories. I am confused on how to do this or if it can even be done. Any help is greatly appreciated.

    Cypher says: This feature is already built into WP. Go into index.php and find the call to wp_list_cats.

    But mine is this: <?php /* Short and sweet */define ‘WP_USE_THEMES’, true); require(‘./wp-blog-header.php’);?>

    so it dont make sense to me.

    Please “enlighten” me.

    You want to look in your theme files. ( /wp-content/themes/YourThemeName). Things have changed since Cypher wrote that post in ’04 – I’d suggest checking sidebar.php as that’s where this call is found in most themes.

    Jesper, you are looking at the wrong file ??
    Whenever the index file is mentioned in general – it always refers to the index.php file in your theme directory: wp-content/themes/yourtheme/index.php

    Also, that post from last year was referring to the pre-theme structure of WP, now you’ll find the template tag (most likely) in your sidebar.php – again, in the theme directory.

    HS types faster ??

    i’m quite new using wordpress and not a developer. i follow the tips f you don’t want to list the RSS feed but just use it, then you can simply point your browser to <site.com>/archives/category/<category>/feed
    but i discovered thath this path is not possible to reach. i do not have such folders on my server hosting my wp.

    singleton

    (@singleton)

    I would love to get a feed address for one of my categories but https://blog.apcug.org/archives/category/Discount/feed does not seem to work. Is that not what was meant by <site.com>/archives/category/<category>/feed

    waltzzz

    (@waltzzz)

    I am using one that I created using the tips above but I don’t have it listed.

    https://www.thousandsketches.com/blog/?feed=rss2&cat=2

    Try just using that format, I doubt if anything else needs to be set up, but I am very new – so the definitive answer is still to come!

    moshu

    (@moshu)

    singleton, you are not using “nice permalinks”, so for you it would be (for the discount category)
    https://blog.apcug.org/?feed=rss2&cat=8

    mrjcleaver

    (@mrjcleaver)

    This is great… now, is there a plugin that would make this accessible to users? Thx.

    mrjcleaver, you wouldn’t need a plugin. Just use that like you would any other feed to show the content.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Seperate RSS feeds for Different Categories’ is closed to new replies.