Creating a Category List View in Atahualpa for WordPress

Here are the steps to create a list of the Titles of all posts in a specific category on a page using the Atahualpa Theme in WordPress.

In the WordPress Admin, create a blank page.

  • Name it what ever you like.  Example:  Category 1
  • After it has been Published, Click on Edit under Pages to display all pages.
  • Hover over the page you just created.  You will need to know the address of the page you just created. In IE is will be displayed in the lower  portion of the brower screen.  It will look something like this:
  • http://website.com/wp-admin/page.php?action=edit&post-163
  • Take note of the number at the end of the link .  In the example above it is “163” .  This number will be different for every page.

It is also necessary to get the number for the Category you want listed on the page.

  • Click on Categories under Posts in WordPress Admin.
  • Hover over the Category you want listed and look for the link.  Use the same procedure listed above.
  • Take note of the number at the end of the link.  The example I use below is “6

Click on Atahualpa Theme Options under Appearance at the WordPress Admin Screen.

  • Click on Style & Edit CENTER COLUMN
  • In The LOOP section find the following line:
  • ’,'
’); ?>
  • Directly below this line Add the following line:
  • <?php if (is_page(163)) {wp_cat_posts(6); } ?>
  • “163” is the Page number found in the previous steps.
  • “6” is the Category number found in the previous steps.
  • Click Save Changes at the bottom of the screen.
  • Now when ever you go to the page  (Category 1 “163” in my example)  all posts in category “6” (my example again) will be listed on the page.

    You can add this line as many times as nessessary for different pages.  Just add the same code with different Page and Category numbers below the one you created.

    You can find a working example of this by going to:  Norcal Nursery, Inc. Pages are listed in the left column under Products.  When you click a specific Product, it lists all Post Titles tagged with a specific category.

    The original instructions on how to accomplish this was found at BytesForAll