• I was experimenting with category RSS feeds for a site I admin.

    I thought I had the correct RSS feed for a category so I added it to my feed reader to see if new posts would work, but the feed was incorrect and new posts weren’t showing up.

    After some digging in the codex I figured out my problem, and now when I go to the page for the category I see the RSS link in the address bar, but when clicked and added to my feed reader it shows the first incorrect feed rather than the correct feed.

    I didn’t add anything into header.php, but when I view the source code I see the incorrect feed. I have no idea what’s wrong with this one.

    The page showing the incorrect feed is here.

    Can anybody give me an idea about what could be going on with this one? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • That’s your main feed as defined in your theme’s header.php file. If you want category specific deeds you’ll need to either add them to header.php and use conditionals to determine what feed url is displayed in the address bar. Or you can add them as links to your category template file.

    See WordPress_Feeds

    Thread Starter glenncvance

    (@glenncvance)

    Hi esmi – that’s the weird thing though. I removed the main feed from the header.php. My header.php <head> section contains –

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <title><?php bloginfo('name'); ?> <?php wp_title(); ?></title>
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <meta name="description" content="<?php bloginfo('description') ?>" />
    <meta name="keywords" content="" />
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="all" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" />
    <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/stmenu.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/glide.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/banner.css" media="screen" />	
    
    <!--[if lt IE 8]>
    <script src="https://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
    <![endif]-->
    
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    
    </head>

    That’s why I’m confused about this.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site Displaying Incorrect RSS Category Feed’ is closed to new replies.