Welcome to Emptiness

No, it’s not a New Age thing… I just realized that the front page of my blog is completely empty (hence this post) - why? Because I am hiding a couple of categories since they are displayed on pages (see book summaries and healing tools) and I don’t want to duplicate content. This hiding prevents them from showing up on the front page but WordPress still counts them. So, displaying 5 hidden posts means no posts are displayed on the front page! Sigh. Hopefully, someone with better coding ability will figure out a way to hide categories without this side-effect… (if you are someone like that, please post the solution to the comments!)

So, to read something, please use the list of recent posts, categories list to access the archive or check out the pages…


The technical details:
I am using the following code in my index.php file:


if (is_home()) if (in_category('99')) continue;
if (is_home()) if (in_category('4')) continue;

This posts all categories to the front page of the blog, except categories 4 (healing tools) and 99 (book summaries). I have tried other methods, such as the Ultimate Category Excluder. But they either re-ordered the posts - nicely displaying the oldest first - or didn’t do anything. I am suspecting that there is a WP 2.3.2 bug that reorders posts since the same effect happens when using the My Recent Posts widget. Using the “order_by” statement didn’t help (I might’ve used it in the wrong place, of course ;-).

January 28, 2008 at 10:14 am Pacific Time
Filed under Blog design

2 Comments »

  1. Justin said,

    February 1, 2008 at 5:21 am

    Have you tried Mr. Lao’s Category Posts plugin? I’ve found that one to work better.

  2. RachelAB said,

    February 1, 2008 at 1:45 pm

    Thanks, Justin! I think that plugin won’t work for me since I am not trying to display from a single category but rather exclude some categories…

Leave a Comment

RSS feed for comments on this post · TrackBack URL