improvement: prise en compte de l'ordre des pages
This commit is contained in:
parent
98aab9cc7a
commit
473c4da58a
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@
|
|||
echo '<a class="btn btn-navbar" href="' . get_category_link($category->term_id) . '">' . $category->name . '</a>';
|
||||
}
|
||||
}
|
||||
$pages = get_pages();
|
||||
$pages = get_pages( array(
|
||||
"sort_column" => 'menu_order',
|
||||
'sort_order' => 'ASC'
|
||||
));
|
||||
if ( $pages ) {
|
||||
foreach( $pages as $page ) {
|
||||
if ($page->post_name != "home") {
|
||||
|
|
Reference in a new issue