2008-03-10 / 06:12 /

Are you tired of all the damn LOTD posts? Well, fret no more gentle readers, so am I. Not tired enough to stop writing them, just tired enough to move them off the front page. LOTD posts will no longer show up on the front page or in the main Atom feed. You can instead find them here:

I’ll update the front page later to make the links obvious.

How’d you do it?

I used WordPress’s query_posts command to filter the “lotd” category out of the main page. This required is_home on the HTML and some messing with categories in the Atom feed.

index.php:

<!-- Remove LOTD, also in wp-includes -->
<?php
   if (is_home()) {
      query_posts("cat=-7");
   }
?>
<!-- elided -->
      <?php while (have_posts()) : the_post(); ?>

feed-atom.php:

    <?php
      if (!$cat) {
        query_posts("cat=-7");
      }
    ?>
	<?php while (have_posts()) : the_post(); ?>

Alternates

Reg uses del.icio.us. That’s probably a better way. One of the benefits of LOTD posts are that I often go back and use them as references. Why not just store them in a link aggregator with an appropriate tag (e.g. “ref”)? I’ll play with the current system for awhile and see how it feels.