Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace post loop counter with core variable #274

Closed
chrismccoy opened this Issue Jul 9, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@chrismccoy
Copy link

chrismccoy commented Jul 9, 2016

i see we have

<?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>

can be swapped with the wp query current post variable, to eliminate the not needed counter

<?php if($wp_query->current_post % 2 == 0) { echo '</div><div class="post-row">'; } endwhile; echo '</div>';?>

@Nikeo Nikeo added this to the v3.1.7 milestone Jul 9, 2016

@Nikeo

This comment has been minimized.

Copy link
Collaborator

Nikeo commented Jul 9, 2016

yep that's right.
candidate for v3.1.7
thanks

@Nikeo Nikeo added the enhancement label Jul 9, 2016

@chrismccoy

This comment has been minimized.

Copy link
Author

chrismccoy commented Oct 18, 2016

any chance of adding this? its at 3.2.9 now, was suppose to be added in 3.1.7

@Nikeo Nikeo modified the milestones: v3.2.10, v3.2.1 Oct 19, 2016

@Nikeo

This comment has been minimized.

Copy link
Collaborator

Nikeo commented Oct 19, 2016

set to v3.2.10 milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.