query_posts() on key’s value, or key’s existence
This will get you everything that doesn’t have the meta key fizzbizz. The custom loop part, I lifted directly from the codex. $pageposts = $wpdb->get_results(” SELECT * FROM wp_posts p LEFT JOIN wp_postmeta m ON p.ID = m.post_id WHERE m.meta_key <> ‘fizzbizz’ OR m.metakey IS NULL ORDER BY p.post_date DESC; “); if ($pageposts): global $post; … Read more