How to make WP page accessile only to specific user roles


I am creating a website that consists of a "Home Page" (public) that has a login link to the WP login page, then, there will be different pages that are only accessible to specific logged members depending on their user roles. For example, home page (public), Page 1 (role x), Page 2 & 3 & 4 (role Y), Page 5&6 (Role 3). Is there a method/plugin to match different WP pages to specific user roles?
Also, I know some basic coding, so I can use PHP snippets (with your help) if this is the only way to resolve this.

Best regards,

George Eye 3 months 0 Answers 9 views 0

Leave an answer