New WP 2.1 Database Structure

In order to distinguish pages and posts in WP < 2.1, it was necessary to query the post_status column: $result = $wpdb->get_results(“SELECT post_status …”); if ($result) { if ($result->post_status == “static”) { echo “PAGE”; } else { echo “POST”; } } In WP >= 2.1 the database schema changed. The…