WordPress.org

Ready to get started?Download WordPress

Forums

[closed] How to turn a page into a blog (4 posts)

  1. SCO7TY
    Member
    Posted 2 years ago #

    The following code is the just my basic plage with nothing on, what would i have to add to the code for it to display blog posts? preferably from a particulat category, category 18 to be exact!

    Page code - http://pastebin.com/qhLkeUwV

    Thanks in advance!

  2. SCO7TY
    Member
    Posted 2 years ago #

    I've found that the following code will work -

    <?php
    query_posts('cat=18');
    while (have_posts()) : the_post();
    the_content();
    endwhile;
    ?>

    But anywhere i put it, my template ends up messed up. Seems to work tho. Can someone tell me where to put the code?

  3. vtxyzzy
    Member
    Posted 2 years ago #

    See your other post on this topic.

  4. esmi
    Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic