Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created August 2, 2013 15:19
Show Gist options
  • Select an option

  • Save billerickson/6140701 to your computer and use it in GitHub Desktop.

Select an option

Save billerickson/6140701 to your computer and use it in GitHub Desktop.
<?php
$argsSamaj = array( 'post_type' => 'videos_gallery','cat'=>$on_draught,'posts_per_page' => 10);
$loopSamaj = new WP_Query( $argsSamaj );
if( $loopSamaj->have_posts() ):
echo '<ul>';
while( $loopSamaj->have_posts() ): $loop->the_post();
echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>';
endwhile;
echo '</ul>';
endif;
wp_reset_postdata();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment