wordpress querry.php is not working properlly
-
hello friends, i am try to execute one query in wordpress but it is giving me an error.
here is my code.
$jobs_args = array( 'post_type' => 'job', 'posts_per_page' => 10, 'paged' => $job_paged, 'author' => array ( '6' ,'10'), 'post_status' => array( 'publish', 'pending', 'draft' ), ); $jobs = new WP_Query( $jobs_args );
it is giving me warning like this “Warning: urldecode() expects parameter 1 to be string, array given in E:\Project\JobPortal\wordpress\wp-includes\query.php on line 2756
Call Stack”also i checked the query is it coming like this
"ELECT SQL_CALC_FOUND_ROWS wpjb_posts.ID FROM wpjb_posts WHERE 1=1 AND wpjb_posts.post_author NOT IN (0) AND wpjb_posts.post_type = 'job' AND ((wpjb_posts.post_status = 'publish' OR wpjb_posts.post_status = 'draft' OR wpjb_posts.post_status = 'pending')) ORDER BY wpjb_posts.post_date DESC LIMIT 0, 10"
can any one help me.. i am but confused..
- The topic ‘wordpress querry.php is not working properlly’ is closed to new replies.