Jump to content
Sign in to follow this  

One category on front page

Recommended Posts


I've added some basic php to my front page to allow only one of my categories to show on it (or if the post is in more than one category it must be in the chosen category as well) using the following code:

if (is_home()):
	query_posts ($query_string . '&cat=26');

This works perfectly well and only category 26 is showing on the front page. However, the "Previous Entries" link won't show previous entries - I just end up with the same 5 most recent posts. Anyone have any suggestions to get rid of this problem? http://www.rmss.ca brad

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this