Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- Elton Pereira - eltondeveloper@gmail.com
- Exibir posta recentes WordPress
- -->
- <?php get_header(); ?>
- <ul>
- <?php
- $Recent_Posts = new WP_Query("showposts=5"); // 5 é o número de posts recentes que você deseja mostrar
- while($Recent_Posts->have_posts()) : $Recent_Posts->the_post();?>
- <li>
- <a href="<?php the_permalink() ?>" title="<?php the_title(); ?> " rel="bookmark">
- <?php the_title();?>
- <?php the_post_thumbnail( 'medium' ); ?>
- <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
- <h2><?php the_time('d/m/Y'); ?></h2> </a>
- </li>
- <?php endwhile; ?>
- </ul>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement