Created
August 3, 2016 15:07
-
-
Save jpcontrerasv/d8f653507c0f1e7d1fb596dc871354a0 to your computer and use it in GitHub Desktop.
Número Incremento
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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