<?php $entradas_comunidad = get_posts( 'category_name=comunidad&posts_per_page=5' ); foreach( $entradas_comunidad as $post ) : setup_postdata( $post ); ?> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1><?php the_content(); endforeach; ?>