Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot order subpages list, why?
#1
Bug 
Hi. Relatively small problem.

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?
Reply


Messages In This Thread
Cannot order subpages list, why? - by SalamandersPL - 2019-02-09, 02:29:01



Users browsing this thread: 1 Guest(s)