• Any way to get the category name in the category’s feed name so if people subscribe to multiple category feeds from you they don’t have multiple feeds in their aggregator that are just “blog title”?

    Example :

    MySite … RSS Feed says Blog Title “MySite”
    MySite:Category … RSS Feed says Blog Title “MySite”

    I want to make it say “MySite : Category Title” in the feed

    Thanks In Advance

    Doc

Viewing 2 replies - 1 through 2 (of 2 total)
  • You’ll have to do this for each feed script file, but for RSS2, edit wp-rss2.php in your blog root.

    Right after the <channel> tag you’ll see:

    <title><?php bloginfo_rss('name'); ?></title>

    Change it to:

    <title><?php bloginfo_rss('name'); ?><?php if(is_category()) { echo " : " . wp_specialchars(get_the_category_by_id($cat)); } ?></title>

    The script files for the other feed types you may support are wp-rss.php, wp-rdf.php, and wp-atom.php. Each one has the same <title> line to look for (though in different locations in the scripts), and require the same modification.

    Note: Always back up source files before editing them.

    Yeah, thats great!
    Exactly what I was searching for.
    Thanks

    I think this one is resolved!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category Name Into the Category Feed’s Name?’ is closed to new replies.