I have a php loop with some php increasing numbers:
<loop start>
<?php $num=0; $onum=0; ?>
<div class="<?php echo ++num; ?>"></div>
<div class="<?php echo ++onum; ?>"></div>
</loop end>
Now this loop is running to get posts on the page, but the posts on the other page is loaded to that same page with ajax and for that the number values are reset.
So instead of getting this:
<loop start>
<div class="1"></div>
<div class="2"></div>
</loop end>
<loop start>
<div class="3"></div>
<div class="4"></div>
</loop end>
<!-- ajax load -->
<loop start>
<div class="5"></div>
<div class="6"></div>
</loop end>
I'm getting this:
<loop start>
<div class="1"></div>
<div class="2"></div>
</loop end>
<loop start>
<div class="3"></div>
<div class="4"></div>
</loop end>
<!-- ajax load -->
<loop start>
<div class="1"></div>
<div class="2"></div>
</loop end>
Any ideas?