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
- CPU Overloading due to some hooks
- Cron Job not working
- What is this async request in wordpress
- Basic function call on init failing
- echo statement displayed on front end
- Is it possible to remove subscription box from Jetpack stats page? [closed]
- In Woocommerce theme need to add custom external link [closed]
- How to create a post with next buttons
- Problem with isset and $_POST
- multiple language website navigation menu suggestion
- WooCommerce product and terms count [closed]
- Error checking when future updates are automatic
- http_response_timeout filter not working
- Create custom template in plugin and display it into post template section?
- Woocommerce Change The Price Of A Product Once Woocommerce Has Retreived It From Database
- Allowed memory size exhausted problem
- Getting taxonomy images to display on single-post with their terms
- plugin generated 751 characters of unexpected output during activation
- Where to populate custom terms in custom taxonomy in plugin?
- Get all woocommerce comments/reviews
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- WordPress contact form 7 to show the form dropdown menus as like [closed]
- get meta value from database by post id
- Plugin function inside custom plugin
- Adding media upload button to User Profile page (following a tutorial)
- WP Google Fonts question [closed]
- First plugin, problem with get_pages
- wordpress content .php file in an iframe’s src in a wordpress post
- How to create a page with links to other pages that include image and excerpt?
- Flipping Book PHP Code? Any experience?
- Create WordPress posts from JSON array using plugin in admin
- Theme Custom Pages
- WordPress as template engine
- Meta Box by Rilwis, Load metabox on all page templates EXCEPT the homepage
- Undefined index: action plugin problem
- Insert Message before content of after title
- Custom url rewriting
- Cropping images from top center using Jetpack Photon
- Localizing methods for jQuery append prepend wrap parent
- Infinite scroll messing up nth:of-type
- How can I exclude a dynamic URL to show a popup created using ‘WordPress Popup’ plugin