Return to Snippet

Revision: 31879
at September 15, 2010 04:14 by adambundy


Initial Code
<?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; ?>

Initial URL


Initial Description


Initial Title
Wordpress Custom Query

Initial Tags
wordpress

Initial Language
PHP