문제

I'm using this bit of code to generate a page full of items but they won't sort into the menu order, any ideas as to why?

   <?php $pages = get_pages(array('child_of', 'menu_order')); ?> 
도움이 되었습니까?

해결책

It should look like this:

<?php $pages = get_pages( array('sort_column' => 'menu_order') ); ?>

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top