I’m trying to set up an rss2 feed for a category.
It’s working, but I’ve noticed the feed name does not get named after the category, but rather the blog.
I thought the feed got named after the page title?
The title of my blog pages are generated in the header.php like this:
<title>My Blog<?php wp_title(); ?></title>
This seems to work fine when viewing posts by category using a url like this:
So the the page title is:
My Blog >> My Category
All well and good, BUT, if I click on the feed link:
<?php echo '<a href="http://www.example.com/?feed=rss2&cat='.trim($_GET['cat']).'"'; ?>>Feed Link</a>
The feed DOES NOT get named
My Blog >> My Category.
How can I get the feed to include the categroy name?
Thanks in advance.
- The topic ‘How to get RSS feed name to display category name?’ is closed to new replies.