WP_query has incorrect wp_posts.post_name = ‘asc’ when I have custom post type called ‘order’
The reason is : My custom post type is “order” So $args[‘post_type’] = “order” And $args[‘order’] = “asc” And for some reason WP_Query made wp_posts.post_name=”asc” I fixed this adding a prefix for my custom post type name like foo-order so $args[‘post_type’] = “foo-order”