Wordpress private posts -


OK, it should be easy I can not work because nothing is working.

I have a WordPress theme with 3 custom post types. I want to restrict access to most posts and some people can be seen publicly by the administrator. I want to make it as easy as possible.

What I currently have is, I have set all the posts in private, then the administrator can come in and whatever post it is "public" people can see people who are not logged in Are there.

The problem is that I can not get private posts to show on fonts for users to enter. I have tried many plugins, members, advanced member access and roll scooper, but none of these works just like adding custom post types.

Please help people that someone knows how I can set it to log show users everything including public and private posts and not show private posts for non logged users .

Or is there a better way to handle personal post stuff?

Thanks

You can do the users with the 'Subscriber' role, You can use private posts by adding the following code to functions.php $ subrole = get_role ('customer'); // $ subrole-> for private pages Add_cap ('read_private_pages'); /// $ subrole-> add_cap ('read_private_posts') for private posts;

Comments