Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Created June 17, 2016 03:58
Show Gist options
  • Save peterwilsoncc/ebba5506f144137a48cfc54bae776b6f to your computer and use it in GitHub Desktop.
Save peterwilsoncc/ebba5506f144137a48cfc54bae776b6f to your computer and use it in GitHub Desktop.
get post class test
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
// post_class();
?>
<p><?php the_ID(); ?></p>
<?php
endwhile;
?>
<hr>
<?php
echo esc_html( get_num_queries() );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment