[resolved] Page with posts (2 posts)

  1. basketball
    Posted 8 years ago #

    Hi I am just wondering if anyone knows how to create a page that will behave like the main page on a wordpress blog. The reason being is that the person I'm helping out is using the Static Front Page plugin to have a page show up on the front page, but they also want to have a weblog page with all the posts.

    Anyways that may have sounded a bit confusing but if anyone can point me in the right direction, I would really appreciate it :)

  2. basketball
    Posted 8 years ago #

    Nvm, this seemed to do the trick:

    <?php $my_query = new WP_Query('cat=1&order=DES&showposts=10'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <h2 id="post-<?php the_ID(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
    <?php the_title(); ?></h2>
    <?php the_time('F jS, Y') ?>
    <div class="entry">
    <?php the_content() ?>
    <?php endwhile; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic