Title: rss2
Last modified: August 18, 2016

---

# rss2

 *  [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * (@link92)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/)
 * How can I make it only display the storys from the category 2004?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44835)
 * afair add an argument ?cat=x after the rss file!
    ex: wp-rss2.php?cat=2
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44839)
 * Or, if you’re using permalinks with a nightly build:
    /archives/category/category-
   name/rss2/
 *  Thread Starter [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * (@link92)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44842)
 * Doesn’t work, I made a new rss thing, I forgot to say
    <pre><?php echo ‘<?xml
   version=”1.0″?’.’>’; ?> <?php $blog = 1; $doing_rss = 1; header(‘Content-type:
   text/xml’, true); require(‘wp-blog-header.php’); /* This doesn’t take into account
   edits // Get the time of the most recent article $maxdate = $wpdb->get_var(“SELECT
   max(post_date) FROM $tableposts”); $unixtime = strtotime($maxdate); // format
   timestamp for Last-Modified header $clast = gmdate(“D, d M Y H:i:s \G\M\T”, $
   unixtime); $cetag = (isset($clast)) ? md5($clast) : ”; // send it in a Last-Modified
   header header(“Last-Modified: ” . $clast, true); header(“Etag: ” . $cetag, true);*/
   if (!isset($rss_language)) { $rss_language = ‘en’; } if (!isset($rss_encoded_html)){
   $rss_encoded_html = 0; } if (!isset($rss_excerpt_length) || ($rss_encoded_html
   == 1)) { $rss_excerpt_length = 0; } ?> <rss version=”2.0″ xmlns:content=”[http://purl.org/rss/1.0/modules/content/”&gt](http://purl.org/rss/1.0/modules/content/”&gt);
   <channel> <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp();?
   > <item> <content:encoded><?php the_content(”, 0, ”) ?></content:encoded> </item
   > <?php $items_count++; if (($items_count == $posts_per_rss) && empty($m)) { 
   break; } } } ?> </channel> </rss> </pre>
 *  Thread Starter [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * (@link92)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44843)
 * It changed the doller sign to $…
 *  [Ryan Boren](https://wordpress.org/support/users/ryan/)
 * (@ryan)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44844)
 * What are you trying to do? If you want a feed for all posts from 2004, do this:
   
   wp-rss2.php?year=2004
 *  Thread Starter [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * (@link92)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44869)
 * i’ll try that
 *  Thread Starter [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * (@link92)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44870)
 * that makes it blank though, oh i give up… (don’t need it anyway, i want it though).
 *  [carthik](https://wordpress.org/support/users/carthik/)
 * (@carthik)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44873)
 * When I was eleven, I hadn’t yet been given user access to the computer at home!
   Great job with the pages, and the attempted code, link92!!
 *  Thread Starter [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * (@link92)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44887)
 * How did you know I was 11, aboutme.geoffers.uni.cc?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘rss2’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [Geoffrey Sneddon](https://wordpress.org/support/users/link92/)
 * Last activity: [22 years, 1 month ago](https://wordpress.org/support/topic/rss2-2/#post-44887)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
