2019-02-09, 02:29:01
Hi. Relatively small problem.
I can not order the subpages i want to echo with the loop:
The $ordered variable do nothing. Why?
I can not order the subpages i want to echo with the loop:
PHP Code:
<?php
$children=getChildren('term-conditions');
$ordered = subval_sort($children, 'menuOrder');
?>
<div class="parent">
<?php foreach ($ordered as $child){?>
<h2><?php getPageField($child, 'title'); ?></h2>
<?php }; ?>
</div>
The $ordered variable do nothing. Why?