relsi

Wordpress - Exibindo posts de uma determinada categoria.

Oct 10th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. <?php
  2.  
  3. //se for a home, exibe os post da categoria destaques
  4. if ( is_home() ) {
  5.     query_posts( "category_name=destaques" );
  6. }
  7.  
  8. // o Loop
  9. while (have_posts()) : the_post();
  10.     the_content();
  11. endwhile;
  12. ?>
  13.  
Advertisement
Add Comment
Please, Sign In to add comment