Skip to content

Instantly share code, notes, and snippets.

@samuelcotterall
Forked from anonymous/gist:d76a0230bab258124e9c
Last active August 29, 2015 14:24
Show Gist options
  • Save samuelcotterall/4060ef31e97c8da03b51 to your computer and use it in GitHub Desktop.
Save samuelcotterall/4060ef31e97c8da03b51 to your computer and use it in GitHub Desktop.
function newsPost_block_func() {
global $post;
$args = array();
$query = new WP_Query($args);
var_dump($query->have_posts());
}
add_shortcode( 'newsPost_block', 'newsPost_block_func');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment