First, download the WordPress Advanced Category Excluder plugin and activate it. Click on the ACE link to choose the categories you want to exclude from showing up in your rss feeds, rss comments, archive pages, search results and home page.
An archives page template should have come with your theme. If not, first save your
page.php template as archives.php and then add
/* to the top of the
Template Name: Archives
Next add the following code to the body of your archives.php page:
Search by Month:
Search by Category:
Search by Post Titles:
$myposts = get_posts('numberposts=1000&orderby=title&order=ASC');
foreach($myposts as $post) :
WordPress Template Tags page to change the parameters of each of the 4 tags above. If this is gibberish to you here’s what I mean:
The stuff between the parentheses in the wp_list_categories template tag above are parameters.
title_li=means no title should be displayed (the default is “Categories”),
hide_empty=1 means don’t show categories without any posts,
show_count=1means show the number of posts for each category. There are other parameters you can set for this template tag and all the others above.
You can see an example of the archives page at WordPress PAD’s archives page here. Well, that’s about it. I hope this helps for those of you who wish to archive your WordPress blogs if they publish more than posts…or even if they’re a regular blog like WordPress PAD.
If you enjoyed this post, get free updates by Email, Mobile or RSS