1
vote
AJAX WP_Query's order and orderby parameters not working
Found the solution in case anyone is having the same problem. Before the Query call I ran:
remove_all_actions('pre_get_posts');
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ajax × 2661jquery × 591
php × 493
javascript × 303
plugins × 275
plugin-development × 250
functions × 179
wp-query × 151
forms × 109
posts × 98
custom-post-types × 87
woocommerce-offtopic × 84
theme-development × 79
json × 78
wp-admin × 71
loop × 64
rest-api × 60
shortcode × 57
filters × 56
customization × 54
hooks × 54
pagination × 52
search × 52
nonce × 51
actions × 49