pages match book order
This commit is contained in:
@@ -42,7 +42,15 @@ function ddd($variable)
|
||||
// Get An Array of Top Level Pages and their Subpages
|
||||
function get_pages_as_array()
|
||||
{
|
||||
$pages = get_pages();
|
||||
|
||||
$args = [
|
||||
'sort_order' => 'ASC',
|
||||
'sort_column' => 'menu_order',
|
||||
'hierarchical' => 1,
|
||||
'exclude' => []
|
||||
];
|
||||
|
||||
$pages = get_pages($args);
|
||||
$page_hierarchy = array();
|
||||
|
||||
foreach ($pages as $page) {
|
||||
|
Reference in New Issue
Block a user