<?php query_posts('cat=5'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
Si tuviera que usar esto, por ejemplo, en una barra lateral izquierda que se ejecutó antes del bucle principal en su página, recuerde restablecer la consulta o alterará ese bucle principal.
<?php wp_reset_query(); ?>