Skip to content

Instantly share code, notes, and snippets.

@lucianobragaweb
Last active February 19, 2022 13:31
Show Gist options
  • Save lucianobragaweb/7599441 to your computer and use it in GitHub Desktop.
Save lucianobragaweb/7599441 to your computer and use it in GitHub Desktop.
Loop simples no WordPress
<!-- // Loop Simples -->
<?php
if ( have_posts() ) : while ( have_posts() ) : the_post();
?>
<!-- // aqui é apresentado o conteúdo do post -->
<?php endwhile; else: ?>
<p>
<?php _e('Desculpa, este conteúdo não encontra-se disponível.'); ?>
</p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment