Created
July 9, 2015 17:29
-
-
Save anonymous/048dc1e52585e890abbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function newsPost_block_func() { | |
global $post; | |
$args = array(); | |
$query = new WP_Query('post_type=post', $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