Associate Posts with individual user – hide from other members
The basis for making this work is actually pretty simple. Essentially, you just need to hook pre_get_posts and set the author query var to the value of the currently logged in user for each type of query you want to limit results on. function logged_in_user_posts( $query ){ if ( is_user_logged_in() ){ global $current_user; get_currentuserinfo(); $query->set( … Read more