Hi WP-Tutorial,
I’m afraid but this won’t apply to public users so it won’t suit my problem. Public users/visitors should be able to view authors’ profiles but not subsribers’ profiles. I would have to hide all profiles to public visitors (= not logged in) if I used your method.
Hi Ultimate Member Support,
thanks for the information. I have already had the feeling that this could get complicated.
But I actually found a solution that fits my needs. It’s not the smoothes, not the most elegant and maybe also not the most resource-friendly workaround (WordPress purists might hate it) but it’s working. I hope my tips are not removed as I’m going to suggest another plugin to work together with Ultimate Member:
1. Assign role-specific profile forms to both authors and subscribers
2. Add the author profile form id to the “User” page. Now there should be two profile form ids: The standard id for the standard profile form (for the standard user = subscriber) and the shortcode/id for the author profile form.
3. Install the plugin called “Members”.
4. The “Members” plugin provides a shortcode for restricted, role-specific access within the sourcecode of pages. Restrict the access to the standard user profile form with these shortcodes on the Ultimate Member User page. It should now look like that:
[ultimatemember form_id=XXX] –> profile form for authors
[members_access role=”administrator,author,[add the roles that should have access]”]
[ultimatemember form_id=YYY] –> standard profile form for normal subscribers
[/members_access]
If you click https://www.alexander-schmitt.me you can find out that you (as a public visitor, not logged in) can view the profile of “MrSmith” (author) but not of “Test1” (subscriber).
I’m pretty sure that there are more elegant workarounds but for me, as WordPress newbie, this was the most obvious and easiest way of getting want I want.
Regards
alschmitt
-
This reply was modified 7 years, 4 months ago by
alschmitt.