WordPress.org

Ready to get started?Download WordPress

Forums

Divided post between pages... now what? (1 post)

  1. AdamSusong
    Member
    Posted 7 years ago #

    I'm not a code person, so I may have donet this the hard way, or the stupid way... Help. I have appearantly done something right and something wrong. I wanted to be able to have a somewhat static homepage, and still blog to a page for my family, and a seperate general blogging page. So I copied the code from the index.php template and created two new templates called family and blog. I added this line of code into the loop to call one specific category for that template. Replacing "special_category" with the category name I wanted to call.

    <?php query_posts('category_name=special_category&showposts=10'); ?>

    I then created one blank page using each template. I created three categories one for the homepage, one for the family page, and one for the blog page. I could then create posts using whatever category I wanted and the post would appear on only that page.

    Pretty neat, and it seemed to work perfectly, until I realized I could no longer do comments, or search. What happened? Can anyone help me with the info I provided. If you need more info please ask for it. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic