Home › Forums › Back End › Reverse PHP Increment › Re: Reverse PHP Increment
January 7, 2013 at 9:57 pm
#120194
Participant
@hotpink I had to change your code as it was counting all the pages, I think (it started from 16).
$count = $page->children()->count();
This echos out 0 for the first article where I need it to echo out 1.