Viewing 3 replies - 1 through 3 (of 3 total)
  • Don’t use query posts, you need to use WP_query:

    <div id="first-column">
    
    <?php $columnone = new WP_Query(); $columnone->query('cat=1&showposts=1');?>
    <?php while ($columnone->have_posts()) : $columnone->the_post(); ?>
    <p>Enter in your title, content, whatever you want in here for the first column</p>
    <?php endwhile; wp_reset_query(); ?>
    
    </div>
    
    <div id="second-column">
    
    <?php $columntwo = new WP_Query(); $columntwo->query('cat=2&showposts=1'); //your attributes go in there?>
    <?php while ($columntwo->have_posts()) : $columntwo->the_post(); ?>
    <p>Enter in your title, content, whatever you want in here for the second column</p>
    <?php endwhile; wp_reset_query(); ?>
    
    </div>
    Thread Starter heinzawhtet

    (@heinzawhtet)

    Oh, Thz. I will test it later.
    Because I’m not at home now.

    No problem, any more help just let us know!

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

The topic ‘How to excute category’ is closed to new replies.