Title: Query Post
Last modified: August 19, 2016

---

# Query Post

 *  [14ner](https://wordpress.org/support/users/14ner/)
 * (@14ner)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/query-post/)
 * On my homepage I have a slider at the top and then three columns below that. 
   I would like to pull the three latest post for a category in each column. So 
   each column will have three post titles and dates for a single category.
 * Can anyone tell me what the Query would be?
 * Thanks in advance,
 * 14ner

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/query-post/#post-1980040)
 * [http://codex.wordpress.org/The_Loop#Multiple_Loops](http://codex.wordpress.org/The_Loop#Multiple_Loops)
 *  Thread Starter [14ner](https://wordpress.org/support/users/14ner/)
 * (@14ner)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/query-post/#post-1980053)
 * Thanks for the link, I have tried multiple different ways of doing this. The 
   only thing that seems to be working is:
 *     ```
       <?php
           $postbits= new WP_Query();
           $postbits->query('showposts=3');
           if($postbits->have_posts()) :
           while ($postbits->have_posts()) : $postbits->the_post(); 
   
           ?> <a href="<?php the_title_attribute(); ?>"><?php the_title(); the_time('l, F jS, Y');
           endwhile; endif;
       ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Query Post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [14ner](https://wordpress.org/support/users/14ner/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/query-post/#post-1980053)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
