I want the contributors / authors to be able to see the post settings options on post pages so they can do things like choosing what template to use and what the subtitle should be. I’ve tried using a WordPress roles editor, but it looks like post settings are linked to publishing posts and I still don’t want the users to be able to post things straight away.
Is there any way to do this using custom code?
Hi,
The theme uses user WordPress default user roles and capabilities
– https://codex.wordpress.org/Roles_and_Capabilities
Authors will have access to all the post settings in when creating a post, that is by default. Contributors do not have access to any of the post settings, they can create a post and submit it for review. An editor or admin will review it and finalize it, then publish it. Detailed explanation here
– https://wpsmackdown.com/lexicon/wordpress-contributor-role/
The theme does not have any settings for customizing user roles and permissions. You could try plugins in the matter if that is required
– http://www.wpbeginner.com/beginners-guide/wordpress-user-roles-and-permissions/
Thanks
Hi Simion,
I’ve tried all the plugins but none work. I noticed on another topic: https://forum.tagdiv.com/topic/disable-post-settings/
You managed to diable it in the functions.php.
Is there anyway of doing the reverse and allowing it for all users? But still keeping limitaions so contributers cant post?
Thanks
Adam
Hi,
That code will remove the post settings from the posts page here. If you want to add them, you could make a small modification in the theme. By default only author roles and higher have access to the post settings. This condition is set here
– https://www.screencast.com/t/k3AvFZh9
You could change that condition to a capability you want
– https://codex.wordpress.org/Roles_and_Capabilities
Changing it to ‘edit_posts’ for example, would give the contributor role access to the post settings.
Thanks
Can this be done through a child theme or one will have to edit main files?
Hi,
@rahulroushan That file can’t be modified in a child theme, so the modification will have to be made in the main theme.
But if you want to modify the user capabilities easiest way would be with a plugin
– https://wpdean.com/wordpress-plugins-to-extend-user-roles-capabilities/
– https://wpengine.com/blog/plugged-in-user-role-plugins/
– https://torquemag.io/2014/08/5-wordpress-plugins-manage-user-roles/