/ Published in: PHP
For more parameters: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // Start WP_Query for only the ID's from above $first_query = new WP_Query( 'post_type' => 'page', 'category_name' => 'stuff', ) ); ?> <?php while($first_query->have_posts()) : $first_query->the_post(); ?> <?php the_title(); ?> <?php endwhile; ?> <?php wp_reset_postdata(); ?>