• This should be a simple one. Where and how do I define that I want only a particular category to show when a user first hits the page? The idea is to have them hit the page and the category displayed is a daily comments category. They can then select from the category pulldown to get a display all posts or a parent or child category. If this isn’t currently possible, is there some way I can set up the category hierarchy so that if a post hits the parent category, it’s displayed with all the parent posts shown top down first in order before displaying any child categories?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rontekadmin

    (@rontekadmin)

    oh yeah, using 2010 RC3 theme.

    query_posts('cat=4'); or whatever category

    before

    if ( have_posts() ) : while ( have_posts() ) : the_post();

    should do it…
    (edit…just noticed your second post….. I haven’t messed with the loop in 2010 yet….)

    Thread Starter rontekadmin

    (@rontekadmin)

    I tried the insertion of the line in several different files to no avail. Exactly which file should this go in? page.php, loop.php attachment.php? No place like that in index. Anyway the loop may also have something to do with it not working too. any extending info you can provide is appreciated.

    Thread Starter rontekadmin

    (@rontekadmin)

    YEAH THANKS FOR ALL THE HELP FOLKS!!!!!! NOT!!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Defining the default category’ is closed to new replies.