So, let’s say you have a blog that publishes more than blog posts. Or rather, you use WordPress’s blog posts loop to publish glossaries, directories, or other lists that you don’t necessarily want published in your rss feed or exposed in your archives. Well, there’s a two-prong solution that takes just about 60 minutes of your time. First, installing the WordPress Advanced Category Excluder plugin and two, creating a JavaScript enhanced archives page that only exposes the posts and pages you want your users to see.
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
*/
?>archives.php page.
Next add the following code to the body of your archives.php page:
Search by Month:
Expand / Collapse
Search by Category:
Expand / Collapse
Search by Post Titles:
Expand / Collapse TitlesSearch by Tags
Visit the 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=1 means 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.

0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment