Added  "AND post_status = 'publish' " to queries