Page Links To Plugin, aka Categories on a Page

How do I show a Category on a Page? Or, for that matter, how do I link to anything I want? This question comes up regularly on the Support forums.

The question really breaks down into two parts:

  1. How do I show categories on a page?
  2. How do I keep from duplicating the posts on the Home/Blog page?

There are several ways to do this, depending on your theme and the version of WordPress you are using.

Lets take the first part first – show categories on a page.

If you are using a WP 3.0 theme with the built-in menu system, you can assign a menu item to a category – Part One Done!

Some themes have menu systems that let you do something very similar. Check your theme options carefully for this capability.

If neither of the above work for you, try the Page Links To plugin.  With it, you can cause a page to link to any URL, including Category pages, Author pages, and even external files.  Here are some brief instructions:

  1. Follow the installation instructions to install and activate the plugin.
  2. Create or edit the page you want to display a category.
  3. Scroll down to the ‘Page Links To’ section at the bottom.
  4. In the ‘Point to this URL’ box, enter ‘http://yoursiteurl/?cat=14’, replacing yoursiteurl with your own URL, and 14 with the category id you want that page to display.
  5. Publish or Update the Page.

The Blog In Blog plugin is a little more complex to set up, but it will allow you to assign Categories to Pages and also exclude them from the Home page.

You could also create a template to select the categories and create a page using that template. This can be a good choice if you are handy with PHP coding.

The second part – exclude the categories from the Home/Blog page has similar choices.

The theme author may have provided an option to exclude categories from the Home page.

The Advanced Category Excluder plugin, or a similar one might work for you.

As a kind of ‘last resort’, you can always edit the template code to add the ‘category__not_in’ parameter to the query arguments.

Leave a Reply

Your email address will not be published. Required fields are marked *