get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static' AND post_author = $user_ID"); } else { $posts = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static'"); } if ($posts) { ?>

»