Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › No Capabilities for News
Tagged: capabilities, news
- This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago by oseebohm.
-
AuthorPosts
-
02/05/2017 at 00:25 #3648oseebohmParticipant
Hi there
I’m in the process of assigning roles and capabilities to selected users of my site. I want to be able to give them the ability to create/edit a news item, however there are no capabilities showing available:
– Custom Post types (16/0)
– News (0/0)Am i missing something?
Thanks
Oli02/05/2017 at 02:10 #3652VladimirKeymasterHi Oli,
Some custom post types are defined a way to use WordPress built-in ‘edit_posts’ capabilities set. You can check this using Admin menu access add-on. Activate add-on, then open Users->User Role Editor, select Administrator role and open ‘Admin menu’. Look what capabilities are used for News menu. I suppose that it is an ‘edit_posts’.
02/05/2017 at 06:47 #3653oseebohmParticipantThank you for the reply. I’ve checked the administrator roles as you suggest, and there is still no capabilities for the WP built in news feed. Enabling post_editing / post_creation does not change the News situation.
Is there anything else I can try?
Thank you02/05/2017 at 07:24 #3654VladimirKeymasterWP does not have built-in ‘news’ custom post type. What plugin or theme creates ‘News’ menu at your site? I need that code copy to look at it and try to help you.
02/05/2017 at 07:53 #3655oseebohmParticipantHi ya.
The plugin is SP-news-and-widget.
<?php
/*
Plugin Name: WP News and Scrolling Widgets
Plugin URL: http://www.wponlinesupport.com/
Text Domain: sp-news-and-widget
Domain Path: /languages/
Description: A simple News and three widgets(static, scrolling and with thumbs) plugin
Version: 3.3
Author: WP Online Support
Author URI: http://www.wponlinesupport.com/
Contributors: WP Online Support
*/Do you need me to copy and paste all the code? Or will you be able to find it?
Regards
Oli
03/05/2017 at 02:22 #3660VladimirKeymasterHi Oli,
‘SP News and Widget’ plugin registers ‘News’ custom post type with the same user capabilities set as WP does for built-in posts. Look at this screenshot.
So if user can edit/create posts he should have a full access for work with news too.User Role Editor does not show capabilities for custom post type if it uses capabilities from WordPress built-in post type. That’s why you see 0 there. Capabilities are available under ‘Posts’ group in this case.
03/05/2017 at 05:01 #3664oseebohmParticipantVladimir
Thank you for your help with this topic, really appreciated how quickly you act on questions, a great service!
I shall try your suggestions later today and let you know how it goes ?
Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.