Il LOOP
Il Loop e' fondamentale per WordPress e si trova nei file template del tema
Il loop di base e' :
<?php if (have_posts()) : while (have posts()) theposts;?>
// istruzioni
<?php endwhile ;
else: ?>
//messaggio di errore
<?php endif; ?>
Il loop mostra le seguenti informazioni :
- Title (the_title())
- Time (the_time())
- Categories (the_category()).
Maggiori informazioni sito : CODEX Loop