global $current_user; if (is_user_logged_in() && $current_user->ID == $post->post_author) { the_content(); }