Skip to content

Instantly share code, notes, and snippets.

@richardegil
Created November 7, 2012 17:32
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 richardegil/4033104 to your computer and use it in GitHub Desktop.
Save richardegil/4033104 to your computer and use it in GitHub Desktop.
for subi
<ul>
<?php $temp_query = $wp_query; query_posts("showposts=10&cat=-1000"); ?>
<?php while (have_posts()) { the_post(); ?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to &ldquo;<?php the_title(); ?>&rdquo;"><?php the_title(); ?></a></li>
<?php } $wp_query = $temp_query; ?>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment