Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array('numberposts' => 5);
- $posts2 = get_posts( $args );
- foreach ( $posts2 as $_post ) {
- if ( has_post_thumbnail( $_post->ID ) ) {
- echo '<div>';
- echo '<img u="image" src2="' . get_the_post_thumbnail( $_post->ID, 'full') . '">' ;
- echo '</div>';
- }
- }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement