Created
August 6, 2015 21:54
-
-
Save kostiantyn-petlia/908915daa6f382a75751 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
//For the latest blog post: | |
<?php query_posts('showposts=1'); ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php the_post_thumbnail(); ?> | |
<?php endwhile; ?> | |
//For a thumbnail from a particular page (in this case id =7 ): | |
<?php query_posts('page_id=7'); ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<?php the_post_thumbnail(); ?> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment