All posts are visible for everybody
-
I’m using this plugin in a Customer Area, with a custom post type, a custom user role, in an specific page. I’m using this code:
echo do_shortcode(‘[O_U user_id=”‘.$current_user->ID.'” blocked_message=””]
[content-customer]
[/O_U]’);[content-customer] is a custom shortcode that just include a template with a custom post type list of posts.
I added some demo content, each post with different user permissions (Post A only visible for Client 1, etc, etc), but when I tested it I can see ALL the posts no mather what User data I use to login.
Tried with $user_id = get_current_user_id(); too
user_id=”‘.$user_id.'” but doesn’t work.What is wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘All posts are visible for everybody’ is closed to new replies.