-
-
Save samuelcotterall/a8e38bd9173d5757e6ac 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( | |
'post_type' => array( 'post' ), | |
); | |
$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