• 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)
  • Thread Starter 14ner

    (@14ner)

    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.