>


get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'"); $perpage = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'posts_per_page'"); if ($numposts > $perpage) { ?>