Skip to content

Instantly share code, notes, and snippets.

@sareiodata
Created February 22, 2013 18:40
Show Gist options
  • Save sareiodata/5015580 to your computer and use it in GitHub Desktop.
Save sareiodata/5015580 to your computer and use it in GitHub Desktop.
<?php $loop = new WP_Query( array( 'post_type' => 'phones', 'posts_per_page' => '10', 'category_name' => single_cat_title('', false)) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
// some content of loop goes here
<?php endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment