Skip to content

Instantly share code, notes, and snippets.

@jpcontrerasv
Created August 3, 2016 15:07
Show Gist options
  • Save jpcontrerasv/d8f653507c0f1e7d1fb596dc871354a0 to your computer and use it in GitHub Desktop.
Save jpcontrerasv/d8f653507c0f1e7d1fb596dc871354a0 to your computer and use it in GitHub Desktop.
Número Incremento
<?php
if ( have_posts() ) :
$slideNumber = 1;
while ( have_posts() ) : the_post(); ?>
<div id="slide">
<ul>
<li class="slide-<?php echo $slideNumber++; ?>">
<a href="#">stuff</a></li>
</ul>
</div>
<?php
endwhile;
endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment