Created
October 21, 2014 16:26
-
-
Save tomjn/5bdffbf207156fd462d9 to your computer and use it in GitHub Desktop.
Thinking out loud on functional programming
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
<?php | |
global $wp_query; | |
array_walk( $wp_query->posts, function( $post, $key ) { | |
setup_postdata( $post ); | |
the_title(); | |
the_content(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment