Apr
12
2009
Category: How To | Tags: How To, php, tutorial, wordpress | 0 Comments
WordPress: Excluding Categories on Secondary Front Pages
More precisely, this tutorial covers how to exclude categories on paged front pages, index.php, beyond the first default listing.
Excluding certain categories from the front page is a pretty easy task, just use the query_posts() function to remove those categories before going into the loop, like so:
<?php if ( is_home() ) {
query_posts("cat=-3");
}
while [...]
Read the rest of "WordPress: Excluding Categories on Secondary Front Pages"
Mar
29
2009
Category: How To | Tags: How To, php, tutorial, wordpress | 17 Comments
WordPress: How to Sort Category Archive Posts by Subcategory
By default, WordPress sorts posts in reverse chronological order, with the most recent post being at the top and the least recent at the bottom. Normally, that’s totally cool, since that’s the way we’ve been accustomed to reading blogs, but what about when you’d like a little more organization?
Let’s say, for example, we’ve got a [...]
Read the rest of "WordPress: How to Sort Category Archive Posts by Subcategory"