[wp-trac] [WordPress Trac] #33860: Loop helpers function
WordPress Trac
noreply at wordpress.org
Mon Sep 14 11:13:45 UTC 2015
#33860: Loop helpers function
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
{{{
while(have_post()) {
the_post();
if(is_loop_first()){
echo 'first';
}
if(is_loop_index(5)){
echo 'is 5 index element';
}
if(is_loop_last()){
echo 'last';
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33860>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list