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

WordPress User Post Products

These four requirments comes right of the box with wordpress. You don’t need any extra plugin for that. Any user can register – Go to General settings page and enable Anyone can register option by checking checkbox available next to it. They can post product – Assign them a role of author so that they … Read more