WordPress.org

Ready to get started?Download WordPress

Forums

make the homepage post only one category (5 posts)

  1. alextababa
    Member
    Posted 7 years ago #

    i'm running a tabbed theme, with categories up top, want the blog to start with only the first one, any ideas?

    i'm new ;)

    http://www.the-defender.org

  2. drmike
    Member
    Posted 7 years ago #

    Please take a look at this and see if it helps:

    The_Loop_in_Action

  3. alextababa
    Member
    Posted 7 years ago #

    thanks drmike.

    but what i don't know is how to have the main index point to a category page. i was wondering if there was a simpler way...

  4. Vietson
    Member
    Posted 7 years ago #

    I use something like this..

    <?php query_posts('cat=1&showposts=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    
    	Your Post Content
    	Replace cat=1, where 1 is the category number...
    	showposts=1, where 1 is the number of post you want to show.
    
    	<?php endwhile; ?>
  5. alextababa
    Member
    Posted 7 years ago #

    ok, that makes sense.

    thanx !

Topic Closed

This topic has been closed to new replies.

About this Topic