Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
MSF
/
msf-climate-hub
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5c1fd621
authored
2023-11-21 18:39:33 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
qa
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
183318cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
wp-content/themes/msf-child/inc/rest.php
wp-content/themes/msf-child/inc/search-extras.php
wp-content/themes/msf-child/inc/rest.php
View file @
5c1fd62
...
...
@@ -35,9 +35,8 @@ function pull_posts_for_post_list( $data ) {
'category'
=>
$categories
,
'numberposts'
=>
$numberposts
,
'suppress_filters'
=>
false
,
'orderby'
=>
'menu_order'
,
'order'
=>
'DE
SC'
'order'
=>
'A
SC'
)
);
}
else
{
...
...
@@ -47,7 +46,7 @@ function pull_posts_for_post_list( $data ) {
'category_not_in'
=>
$exclude
,
'exclude'
=>
$exclude_posts
,
'orderby'
=>
'menu_order'
,
'order'
=>
'
DE
SC'
'order'
=>
'
A
SC'
)
);
}
...
...
@@ -84,13 +83,15 @@ function pull_posts_for_post_list( $data ) {
$posts
=
get_posts
(
array
(
'category'
=>
$categories
,
'numberposts'
=>
12
,
'order'
=>
'DESC'
,
'orderby'
=>
'menu_order'
,
'order'
=>
'ASC'
,
'suppress_filters'
=>
false
)
);
}
else
{
$posts
=
get_posts
(
array
(
'numberposts'
=>
12
,
'order'
=>
'DESC'
,
'orderby'
=>
'menu_order'
,
'order'
=>
'ASC'
,
'suppress_filters'
=>
false
,
'category__not_in'
=>
$exclude
,
'exclude'
=>
$exclude_posts
...
...
wp-content/themes/msf-child/inc/search-extras.php
View file @
5c1fd62
...
...
@@ -21,7 +21,6 @@ function filter_query_args( $query_args, $sfid ) {
$query_args
[
'orderby'
]
=
'relevance'
;
$query_args
[
'order'
]
=
'ASC'
;
error_log
(
print_r
(
$query_args
,
true
));
return
$query_args
;
}
...
...
Please
register
or
sign in
to post a comment