Creating a special category for the game posts on your WordPress Blog
Saturday, March 22nd, 2008This article describes how to add a game section on to your WordPress Blog so that all the game posts appear in a special category without being posted on the main page.
First, you should add data from Feed on to your Blog (you can find detailed instructions on how to do that here).
Note that Outrix Feed plugin must be installed (for instructions on how to install Outrix Feed plugin, see this article).
In order to create a new category (e.g. Games), you should go to administration panel, click on Manage and choose the tab Categories to make the form Add Category available at the bottom of the page. Once a new category has been created, Wordpress will assign it with an ID. Remember the ID. Now set newly created category as parent for all the categories that have been created automatically for the games added from Feed (e.g. Action & Arcade).
To remove the game posts from the main page of your Blog the following step should be taken:
open the file index.php of the active theme and find the row:
<?php if (have_posts()) : ?>
having found the row, type in just before it:
<?php if (is_home()) { query_posts(”cat=-N”); } ?>
instead of ‘N’ put the ID of your category.
Now the game posts will not be displayed on the main page of your WordPress Blog.