Created
December 6, 2010 19:38
-
-
Save sethiele/730794 to your computer and use it in GitHub Desktop.
Wordpress get_posts
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 $post; $myposts = get_posts('numberposts=10&offset=0'); //Mit dieser Funktion läd man "numberposts" | |
foreach($myposts as $post) : | |
setup_postdata($post); | |
print get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); | |
endforeach; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment