Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created May 29, 2013 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/5670429 to your computer and use it in GitHub Desktop.
Save billerickson/5670429 to your computer and use it in GitHub Desktop.
<?php
query_posts('showposts=6');
$ids = array();
while (have_posts()) : the_post();
$ids[] = get_the_ID();
echo '' .the_title(). '';
endwhile;
wp_reset_postdata(); ?>
$ids));
while (have_posts()) : the_post();
echo '' .the_title(). '';
endwhile;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment