If I am understanding correctly, you want to show only own postings to an user (in the back-end)
I would do it with a seperate function as shown below.
By changing the capability you can decide which users can see all post and which not.
In the function below contributors can’t see other users post on the listings in the Back-end.
(please make a backup of the
functions.php
first ..)
Add thisfunction
in your functions.php
/**
* Show only -own- Posts/CPT to user in the Back-end
*
* Codex links: {@link https://codex.wordpress.org/Plugin_API/Action_Reference/parse_query}
* {@link https://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table}
*
* @version WordPress 4.6.1
*/
add_filter('parse_query', 'wpse241099_display_own_post_only' );
function wpse241099_display_own_post_only( $wp_query )
{
// Check if we are on the correct page (in Back-end)
if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false )
{
// Set capability
if ( !current_user_can( 'publish_posts' ) )
{
global $current_user;
$wp_query->set( 'author', $current_user->ID );
}
}
} // end function