projects
/
WP-Themes
/
AdelaineConstruction.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1492aa0
)
sorting things
author
Steve Sutton
<steve@gaslightmedia.com>
Wed, 20 Dec 2017 19:23:38 +0000
(14:23 -0500)
committer
Steve Sutton
<steve@gaslightmedia.com>
Wed, 20 Dec 2017 19:23:38 +0000
(14:23 -0500)
get the sort correct for menu items.
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
cbb83c3
..
d9892c7
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-106,10
+106,11
@@
function glm_get_visable_page_ids()
array(
'post_type' => 'page',
'post_status' => 'publish',
- 'sort_order' => 'asc',
+ 'sort_order' => 'asc',
+ 'sort_column' => 'menu_order'
)
);
-
if ( $publishedPages ) {
+ if ( $publishedPages ) {
foreach ( $publishedPages as $page ) {
if ( !$page->post_password ) {
$publishPageIds[] = $page->ID;
@@
-118,7
+119,7
@@
function glm_get_visable_page_ids()
}
return implode( ',', $publishPageIds );
} else {
-
return '';
+ return '';
}
}