Not by default without custom code. An alternative solution is to use a plugin. I tend to use https://wordpress.org/plugins/members/ and then wrap my content in the shortcode for the user role (https://members-plugin.com/docs/shortcodes/).
I use Members too and really like it and it's free! You can create your own custom roles and then assign which roles can see your page or post in the WP editor. It does not work with my event calendar plug-in though or not very well at least. You have to make the event private to be able to restrict access which is rather limiting.
i found this on the official guide but i can't get it to work for custom roles!https://formidableforms.com/knowledgebase/php-examples/#kb-show-content-based-on-current-users-role
Please login or Register to submit your answer