Title: Custom template implementation
Last modified: August 19, 2016

---

# Custom template implementation

 *  [Zorrocaesar](https://wordpress.org/support/users/sakura/)
 * (@sakura)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-template-implementation/)
 * 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)

 *  [equaldesign](https://wordpress.org/support/users/equaldesign/)
 * (@equaldesign)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-template-implementation/#post-855133)
 * 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.

## Tags

 * [columns](https://wordpress.org/support/topic-tag/columns/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 2 participants
 * Last reply from: [equaldesign](https://wordpress.org/support/users/equaldesign/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/custom-template-implementation/#post-855133)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
