• hypoluxa

    (@hypoluxa)


    I’m working on a site that has multiple RSS feeds. I want to have each category behave differently when people pull it’s rss feed. This mostly has to do with having podcast feeds look different than text categories.

    I know that you can edit the single.php file to display single posts differently depending on the category.

    Can I edit the rss2.php to do the same thing?

    I’ve tried PodPress and it did not work because the site has multiple podcast feeds.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Chris_K

    (@handysolo)

    I want to have each category behave differently when people pull it’s rss feed.

    Can you elaborate on that please?

    Thread Starter hypoluxa

    (@hypoluxa)

    I want to be able to have my text (news) feeds to have a graphic depending on the category not a global one.

    I’d also like to have my podcast feeds to be parsed out for podcast and itunes aggregation (is that a word) to include graphics and other information that are not in the text feeds.

    This would require more than the “one size fits all” rss2.php in my wp folder. Right now my single.php has a code like this in it

    <?php
    $post = $wp_query->post;
    if ( in_category('10') ) {
    include(TEMPLATEPATH . '/single10.php');
    }
    if ( in_category('11') ) {
    include(TEMPLATEPATH . '/single11.php');
    }
    if ( in_category('13') ) {
    include(TEMPLATEPATH . '/single13.php');
    }
    if ( in_category('21') ) {
    include(TEMPLATEPATH . '/single21.php');
    }
    if ( in_category('22') ) {
    include(TEMPLATEPATH . '/single22.php');
    }
    else {
    include(TEMPLATEPATH . '/single1.php');
    }
    ?>

    Can the same type of thing be done for the rss2.php file? If it can, then I can customize my feeds however I want them, like I do my single post files.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can the RSS2 feed behave like single.php?’ is closed to new replies.