WordPress: How to create a page that displays a specific category archive

By , 2012-03-20 11:01

Quick way to display a “Category archive” as a page in WordPress

  1. In your wp-content/themes folder, copy the “category.php” file to “template-categorypage-categoryname.php”.
  2. Edit the template-categorypage-categoryname.php.
  1. Add
    <?php
    /**
    * Template Name: CategoryName Category page

    to the top of the page.

  2. After the first
    ?>
     tag, add
    <?php query_posts('cat=[categoryid]&posts_per_page='.get_option('posts_per_page')); ?>
    Where [categoryid] is your WordPress numeric category ID.
  3. Create a new page and choose the template “CategoryName Category page” from the page attributes sidebar widget.

Custom theme by me. Based on Panorama by Themocracy