Home › Forums › Back End › Reverse PHP Increment › Re: Reverse PHP Increment
January 7, 2013 at 9:53 pm
#120192
Member
Maybe set the counter to the highest number, and count down.
I took a peek at the Kirby API cheat sheet I came up with this.
$count = $page->count();
foreach($page->children()->visible()->flip() as $article):
$count–;
?>