The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Reverse PHP Increment Re: Reverse PHP Increment


@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.