home page and category description
-
Odd. I can set up category descriptions and in all pages they work just fine. However, I have a “home” category that I use to categorize the posts that will show only on the home page – I’ve created a home.php file to use for this.
The problem is that the code:
<div id="intro"><?php echo category_description(); ?></div>
isn’t displaying the text in the category description. If I upload a special category (category-1.php) page, it does display… however, I don’t know how to get that page to display by default the way home.php does.
to show the home category posts, I am using:
<?php
if (is_home()) {
query_posts("cat=1&order=ASC");
}
?>
Ideas, anyone? What am I doing wrong? I don’t care which page is used (home.php or category-1.php) but I need it to load by default (like home.php) AND display the category_description as well as the posts in reverse order.
All help greatly appreciated.
- The topic ‘home page and category description’ is closed to new replies.