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
- Is there a way to use latex \cite{reference} in wordpress?
- How to check plugin compatibility before upgrading WordPress
- How do I unlock a post programmatically?
- Force Plugin to English Translation
- Removing user contact methods works from functions.php but not from a plugin
- I need to Remove this line
- How do I change the default WordPress e-mail ID for sent e-mail?
- How to create a word press user with hashedpassword
- Is it possible to set up multistore in Woocommerce? [closed]
- Show HTML form before WordPress plugin deletion
- Menus, but not by theme location
- Will Gutenberg Have a Negative Impact on Page Speed?
- import posts with dutch/special letters
- Gutenberg Blocks – Cannot retrieve block saved attributes in edit post
- How to add fields in the WordPress editor?
- Migrating WordPress – New domain entry, links broken
- Is there a better way of handling AJAX requests in WordPress?
- add_meta_box creating default form field types
- JS Plugin not executing the js correctly. Trying to make all internal links scroll smoothly
- Call javascript functions from each page
- Button and Countdown overlapping mobile menu
- Check if theme supports sidebar
- Change plugin descriptions
- update_option_{$option} not working (do function after options are saved)
- Looking for WordPress PDF Converter with Custom Templates?
- How get horizontal div instead vertical CSS
- Display plugin-generated content to override a placeholder page
- Members-only page, but accessible via sharable link
- Google trying to index child theme files
- The dropdown list in autocomplete is not showing
- How to overlay a webcomic plugin on top of a header image?
- Consume legacy rest api dependent upon WP API plugin
- How to Add Jquery FullCalendar in wp plugin in admin
- How to speed up installing plugins and upgrading WordPress
- Advanced Custom Field User Help URL
- WordPress check box unchecked on null value ternary operator [plugin development]
- WordPress portfolio pagination on home page
- Wrapping code in an if block
- Suitable hook when creating, updating and deleting posts programmatically
- how to make yoast seo read text from custom fields in custom post type
- How can I gather forums posted by visitors from different sites in one place? [duplicate]
- Does anyone recognize these table names?