• I’m developing a custom template for WordPress 2.6 which has 3 columns. In the central column, I want to display the last post in full view, and in the left and right columns I want to display the second and third latest posts, or a page. The template is already implemented, but I don’t know how to display that particular information on the template. Can someone give me a few hints?

Viewing 1 replies (of 1 total)
  • Maybe this would work:

    <?php
    query_posts($query_string.'&posts_per_page=-1');
    while(have_posts()) { the_post();
    <!-- put your loop here -->
    }
    ?>

    that will generate the latest post and then in the right column to generate the next latest post your could include:

    <?php
    query_posts($query_string.'&posts_per_page=-1&offset=1');
    while(have_posts()) { the_post();
    <!-- put your loop here -->
    }
    ?>

    Note the &offset. I haven’t tried it but give it a go.

Viewing 1 replies (of 1 total)

The topic ‘Custom template implementation’ is closed to new replies.