WPDB custom query result vs phpmyadmin
-
Hello,
I’m running a custom query using the WP_Query and it suppose to return one post,
$post = new WP_Query( array('showposts'=>1, 'order'=>'DESC', 'post_type'=>'cmedia') );
However this doesn’t returns anything, 0 rows. I var_dumped this $post object got the actual SQL syntax that runs by WP_Query, gave it a shot in phpmyadmin and got one row result.
Any idea why this happens?
Thanks
- The topic ‘WPDB custom query result vs phpmyadmin’ is closed to new replies.