get_posts query results out of order but shows correct in php snippets plugin
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 … Read more