[resolved] Display Category As Front Page WP 2.3.1 (2 posts)

  1. pdlr
    Posted 7 years ago #

    It seems like there are several plug-ins for handling this, but not for WordPress 2.3.1.

    Might this easily be done by changing some code in the index.php file? I don't need a lot of complicated options. Just the display of a certain category on the front page.

    I wish I was a programmer. Thank you for any help.

  2. pdlr
    Posted 7 years ago #

    This problem can be resolved by adding the code

    <?php query_posts('cat=1'); ?>

    (replace with whatever category id number you want to display on the main page) to the index.php file.

    It should be added right after the line

    <?php if (have_posts()) : ?>

    (I am building off the kubrik theme on WP 2.3.1)

Topic Closed

This topic has been closed to new replies.

About this Topic