[Resolvido] Exibindo 4 últimos posts
Olá pessoal, boa tarde!
Tenho um código que exibe os posts de uma determinada categoria, mas ele exibe apenas o último post, queria exibisse os últimos 4 posts. Alguém pode me ajudar?
<?php if (is_home()) { query_posts("category_name=blog"); } ?>
<?php if ( have_posts() ): while( have_posts() ): the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php esc_attr( the_title() ); ?>">
<h1><?php the_title(); ?></h1>
<?php the_content(); ?>
</a>
<?php endwhile; ?>
<?php else: ?>
<?php endif; ?>Discussão (5)
Carregando comentários...