/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $mycustom_query = new WP_Query('cat=106&showposts=10'); ?> <?php while ($mycustom_query->have_posts()) : $mycustom_query->the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> // stuff </div> <!-- .post --> <?php endwhile; ?>