Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Created January 28, 2013 17:39
Show Gist options
  • Save LinzardMac/4657471 to your computer and use it in GitHub Desktop.
Save LinzardMac/4657471 to your computer and use it in GitHub Desktop.
$query = new WP_Query( array(
'post_type' => 'wod',
'posts_per_page' => -1,
) );
if( $query->have_posts() ): while( $query->have_posts() ): $query->the_post();
the_content();
endwhile;
endif;
@jaseinatl
Copy link

'wods', 'posts_per_page' => -1, ) ); if( $query->have_posts() ): while( $query->have_posts() ): $query->the_post(); the_content(); echo var_dump($query); endwhile; endif; ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment