Advertisement
diegocosta

Untitled

Mar 5th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2.  
  3.     // tem conteúdo ou posts nesse link
  4.     if(have_posts()){
  5.         // loop enquanto tiver posts (se for página, só roda 1x)
  6.         while(have_posts()){
  7.             // chama o post atual
  8.             the_posts();
  9.  
  10.             // Agora é só colocar oq quer exibir, ex:
  11.             the_title(); // exibe o titulo
  12.             the_content(); // exibe o conteudo
  13.             the_author(); // exibe o autor
  14.             //...
  15.         }
  16.     }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement