Herself’s Webtools

Webtools for Webmasters: Scripts, HowTos, Templates, Plugins, Widgets, Tips and Useful Information

Herself’s Webtools header image 1

How to list all posts from a specific category in your sidebar in Wordpress

October 10th, 2007 · 1 Comment

If you are using a version of Wordpress prior to 2.3 then this plugin will create a list of all your posts in one specific category. They will be ordered alphabetically by category. You can put this as a list in your side bar, a page or a post.

WP Plugin: Link list of posts by category ( <2.3 )

== Installation ==

1) Download, unzip, upload to your plugin directory and active the plugin.

2) Go into your Admin page find Options->Posts by category

3) Put the number of the category you want to list in the box and click ‘Update options’

4) Add the following code to your sidebar:

<?php echo category_of_posts() ?>

OR

4) Add the following code to a post or page <!– listacategory –>
Now you have a list in your sidebar of all posts from one category listed in alphabetical order.

*Note: This does not work with Wordpress version 2.3. ( Directions for Wordpress 2.3+ are here )

This is the plugin I’m using to create the list of ‘HowTos’ you see to your right in the sidebar and also to list all the recipes on the recipes site.

Tags: how to · wordpress

1 response so far ↓

You must log in to post a comment.