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 ;-) .

Share this post with others:
Facebook Twitter Linkedin Email
This entry was posted in Blog design. Bookmark the permalink.

2 Responses to Welcome to Emptiness

  1. Justin says:

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

  2. RachelAB says:

    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…

Please leave a comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>