I hate to tell you this, but you have a typo that’s causing the problem.
'order '=>'asc', should be 'order' => 'asc',
(Notice the space inside the 'order ' string.)
If that’s not the issue, I’d to a string search on all the files in wp-content for pre_get_posts to see if the theme or a plugin is altering the query.
Related Posts:
- Uncaught Error: Call to undefined function wp_generate_attachment_metadata() @ wp-cron
- Schedule WordPress Auto-Updates to only run during business hours
- How to make sure a wp-cron job runs
- How do I email a new page password to somebody every month?
- What happens when wp_cron is deactivated in WordPress?
- Long running action from plugin
- How to get posts by content?
- Posts wont expire
- Custom interval is not working
- Cron Job not working in plugin
- How to use wp-ajax in wp-cron
- wp_schedule_single_event function not working
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- action-scheduler vs wp-background-processing
- Remove obsolete plugins artifacts from database tables
- Why is wp-cron only executing on page visit?
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Cron job not firing
- How make a php script run only with wp-cron
- How do I pass a post ID to the page URL?
- Does using WP-cron make the site slower for the user?
- wp_schedule_single_event not working: cron job is triggered but nothing gets executed
- How does task scheduler plugin implements cron that is not dependent on page load request? [closed]
- How to make a implement queue for scheduling tasks in WordPress?
- Bulk updates to post_content
- Automatic plugin updates not working
- Cron Job not working in plugin
- Setup wp_schedule_event within a custom plugin
- How to set intervals in cron jobs?
- How to Loop Through all Posts and Count Attachments using Get Media Attachments
- get_edit_post_link() not working on wp-cron
- get_users(); Is an Undefined Function When Used in Cron Job
- Switch from wp-cron to a server cron job
- WordPress plugin: Getting posts where checkbox selected
- What causes wp_schedule_single_event to fire off?
- How to return a specific attribute
- WordPress cron job running more than once
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Save log for imports in WordPress database – options-table, custom post type or other place?
- Cron: Update four post at Hour
- Activate Plugin Automatically After Set Time
- reminder wp_schedule_event
- custom post type get_posts() function not work
- Scheduled cron event removed from list automatically after sometime
- WP_CRON issue with UTC and local time
- Better way to run heavy scripts using WordPress database
- wp_schedule_event function reference
- WordPress Cron function is not working
- WordPress crob job performance
- View more posts of a sub-category
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- Strange get_the_* behavior with php 5.4
- Adding custom cron_schedule prior to wp_schedule_event
- Using a Cron Job to dynamically populate a field ONCE, and then making the field blank the next time someone visits page
- Plugin Hooks Not Shown in WP Cron Jobs
- WordPress ultra slow if I click on posts?
- get_posts() method and paging is not working
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- WordPress “wp cron event run” as Siteground cron job
- Cron Job not working
- Which approach for managing automatic updates would be more robust?
- Get the category from an ID of a product?
- Pass variable to nested shortcode
- Simple plugin for showing RSS subscription links?
- Display data on Word Press site posts and pages from mysql table
- How to save additional user data as part of the registration process?
- Why is output buffering used here?
- What’s the best way to implement AJAX in WordPress?
- Trying to create a plugin to change wordpress site icons per page
- What is the correct way to show $href = vc_build_link( $href ); [closed]
- Adapt PHP form action for WordPress?
- Embed plugin into Custom Page Template
- Retrieving links and names of images from a NextGEN gallery [closed]
- Is changing post from category in a large blog a good practice?
- Contact Form 7 – Show image on successful send? [closed]
- Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one
- Display site language setting in source code
- Why may one avoid Jetpack plugin? [closed]
- Why is adoptStyles-css stylesheet link added to every page?
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- Thumbnail image doesn’t show up in Shortcode output
- Fatal error: require_once(): Failed opening required
- shortcodes not working [dt_carousel & [dt_fancy_image
- Load google font script based on optgroup label selected
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Pay Employee via WordPress
- Create Biographies
- Direct URL to a template via plugin
- Which One Is Better For Managing Add Ons For Extensible Plugin?
- WP REST API Access-Control-Allow-Origin response is cached
- Posts are deleted everyday at night
- Get Core Functionality from Within a (Secondary) Plugin File
- Single dash converted to double dash
- Output pure JSON wordpress
- Can’t use updated variables in handle function
- How does one add numbers to an admin menu?
- Remove posts that start with similar words (like a delete duplicate posts plugin)
- _sold_individually value change when add to cart
- How is wp_admin_notice supposed to work?
- Draft standard post by ACF Data picker