Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2012 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4186307 to your computer and use it in GitHub Desktop.
Save anonymous/4186307 to your computer and use it in GitHub Desktop.
WpAlchemy Increment Example #1
<?php while($mb->have_fields_and_multi('wpa_home_slides')): ?>
<?php
$count = 1;
$mb->the_group_open();
?>
<div style="width: 500px; margin: 15px 0px 40px;">
<h3><?php echo $count; ?></h3>
[...]
</div>
<?php $mb->the_group_close(); ?>
<?php $count++; endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment