[Resolved] Query Changes?
Does anyone know if WordPress 2.0 changes the $wpdb class or the way that queries are sent? This query works for WP1.5 but returns ‘false’ under WP2:
$request = “SELECT post_id FROM $wpdb->postmeta LEFT OUTER JOIN $wpdb->posts ON ID = post_id WHERE post_status = ‘publish’ AND meta_key = ‘featuretitle’ AND post_id != ‘$exclude’ ORDER BY rand() LIMIT $display”;
$posts = $wpdb->get_results($request);
- The topic ‘[Resolved] Query Changes?’ is closed to new replies.