Tagged Questions
0
votes
1answer
45 views
Enable comments for post when comments meta box removed
I've hit the issue described in '11:
"Enable comments for post with comments meta box removed" and I'd like to ask for your help to adapt the mentioned there code to the current wordpress version.
I ...
0
votes
0answers
13 views
Custom taxonomy not working after capability change
I have a custom taxonomy, that worked fine. Until I did the following:
Added new role
Assigned a new capability for the taxonomy
Created new post type, and assigned the taxonomy to it (The cpt name ...
0
votes
1answer
24 views
Roles and Capabilities in Custom Post Types
Is there a way to create one role with one capability and apply it to some of the custom post types?
What I am doing right now is ending up with applying capabilities to all of the posts..
creating ...
0
votes
1answer
15 views
Restrict custom post type view by user role
I've created a custom post type and created a couple of custom user roles and want to be able to restrict the view of the post type based on the specific roles.
Is there a straightforward way to ...
0
votes
0answers
32 views
Capability to read user's own draft post of CPT
I've got a custom role called 'Gym' and custom post type (CPT) called 'Story'. Every Gym user can create a draft of a story and view their own story drafts.
My 'Story' CPT have got the following ...
1
vote
1answer
118 views
Restrict Contributors to view only their own custom post types?
For our 'Posts' type, our Contributors can see only their own posts, which is what we want. But for our custom post types, Contributors can see every post, including drafts. Is there a way to limit ...
0
votes
2answers
27 views
Reservations as Post
I am creating a multi-user, multi-product, multi-product-category reservations engine proof of concept. As I need to build it really fast I am using Wordpress's custom post types to manage a lot of ...
0
votes
0answers
136 views
Custom Post Type & Role Capabilities
Thanks to Matthew Boynes I was able to get user roles edited for one of my CPTs using a very elegant solution found here. Now I'm trying to get the same capabilities added to a 2nd CPT and for some ...
1
vote
2answers
61 views
Role scoping for contributors down to the field level
We've been looking for a Wordpress plugin or system that lets you scope admin/contributor "roles" down to the field level. We have an immediate need for something like that, but totally coming up ...
0
votes
1answer
183 views
How to restrict specific post types from being read or added by specific user roles (eg. author)?
I'm not very clear how to restrict admin area post types access to specific user roles.
In my case, I have some post type such as "suppliers" which I do not want to show to "authors".
By default WP ...
0
votes
1answer
60 views
Custom post type & role issues
I am having issues with using custom post types and custom user roles. I created a custom post type called Businesses. Then I created capabilities for users of a certain type to be able to add and ...
0
votes
1answer
94 views
Creating teams of users in Wordpress
I'm currently working on a University project wich is a website for managing a GameJam event that occures every 6 months. Our users will be in teams of 1 to 4 people and will be able to post about ...
1
vote
1answer
44 views
Want to be able to sign up subscribers as authors
I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
2
votes
1answer
720 views
Creating custom user roles
I need to create a custom user role who will be able to create posts (of a specific post type) but not publish them (just like the current contributor role.
I'm being a bit confused on how to create ...
2
votes
1answer
122 views
Allow Administrator role access to custom capabilities
I'm currently developing a Wordpress business directory plugin with a 'business' custom post type. I have it creating a custom 'business_author' user role on activation and assigning specific ...
2
votes
1answer
623 views
Role Capabilities: Add New Ones?
I'm trying to create a private type of community ... and the current Capabilities are great, except for the fact that I don't want users of a certain Role being able to see anything that someone else ...
1
vote
1answer
350 views
can't see custom post content filtered under “mine” filter in admin panel
after creating a custom post type with custom post type UI plugin, and
after creating the capabilities for a new role to edit, delete and publish it's own custom posts with User Role Editor plugin, ...
4
votes
1answer
2k views
How to assign specific users the capability to edit specific pages / posts / custom post types
I'm trying to implement what seemed like a relatively straight forward idea, basically I am building an access control plugin to control viewing and editing of a custom post type (in this case ...
3
votes
2answers
3k views
Possible to hide Custom Post Type UI/Menu from specific User Roles?
What I'm looking to do is completely hide the UI for a custom post type from specific user roles...Ive previously found many resources on how to disable access to using those CPTs but nothing that ...
4
votes
1answer
532 views
Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding 'capability_type' parameter
I got quite confused with Custom Post Type (CPT) 'capability_type' parameter and adding generated capabilities to a role.
So I've got a CPT called 'external_role' registered as following:
...
1
vote
2answers
705 views
After adding add_role to functions.php and creating a user, can not login into admin
I'm trying to add a specific role to manage my custom post types and I'm stuck at the very beginning.
I've added add_role() to the functions.php file as following:
add_role('resourcerer', ...
0
votes
0answers
436 views
User roles and custom post type confusion [closed]
I am getting a bit confused by a complex user roles situation and hoping someone can clarify.
My site has content added by student Film Directors. I created a new user role ('Directors') so that each ...
1
vote
1answer
475 views
grant a privilege for roles (for example editors) and higher
My wordpress theme has a custom post-type. Only editors (and higher) should be allowed to use this post type.
I did this with:
function add_capability($role,$cap) {
$role_obj = get_role($role); ...
0
votes
1answer
279 views
Building Forums with Custom Post Types
I'm trying to build some sort of a discussion boards by using custom post types and the built in comments.
The structure is as following:
An archive page to list all the pages of the Forum type, so ...
3
votes
2answers
422 views
User roles - enable custom posts disable posts
Im just wondering if its possible to create user role that allows to write/edit custom post type for example: Consultants, but not allow to write normal posts (used for as news for example).
I know ...
0
votes
1answer
290 views
Enable comments for post with comments meta box removed
I have created a custom post type in a plugin for a site I'm working on. I'm allowing users assigned a custom role to add/edit/delete the custom post type. I would like to give these users as little ...
1
vote
1answer
478 views
Prevent authors from creating new posts of specific custom-post-type
The way I'm set up currently, I create a post for each user of the site, custom-post-type, Agent, then assign it to a user, and they can edit it however they like. What I want to remove or disable is ...
1
vote
1answer
779 views
Define new user capability for custom post types?
If I create a custom post type and want to create custom capabilities for that, how do I do this? For example, I want to let my Editors to edit and create and delete posts and pages, but not the ...
0
votes
2answers
203 views
How do I “trash” a custom post type post while logged in as Admin
I am using the members plugin and have a custom post type of "listing"
When I navigate to listings in the backend, I can edit. quickedit, and view. There is no option to trash. I am logged in as ...
0
votes
1answer
495 views
How can I get the last posts by user role?
I have a custom post type ("News"), and a custum user role ("Friends").
How can I get the last "News" written by "Friends" ?
5
votes
3answers
6k views
Allow member to have access to custom post type only. Permission to only edit their own posts
OK I'm looking for the best way to attack this.
I'm very comfortable with PHP and making custom post types with custom meta fields in WordPress.
Here is what I'm looking at doing:
User registers ...
2
votes
1answer
338 views
using add_role function to make some users to create a selected type post
how are you ?
I have in my site (post_type called = books)..
I need to make some users for example (Library) to create a books (post_type = books) ..
this is the code to add rols (called = library) ...
3
votes
2answers
735 views
Associating an “author” with a custom taxonomy
I have a custom role, "Ministry Representative", which is able to log in and create and manage their own "Opportunities" and "Events", which is each a custom post type.
On the front end of the site, ...
4
votes
1answer
267 views
Can I make user role that can only access a certian content type?
I would like make a custom role that can only access a custom content type that I'm going to be creating in the admin. Is that possible and does any know of any examples or tutorias that I should ...
5
votes
2answers
4k views
Defining capabilities for custom post type
On creation of a custom post type I'm trying to define capabilities but it's not working. What's wrong with this code?
$args = array(
'labels' => $labels,
'public' => true,
...
2
votes
1answer
614 views
Allow user to Edit Posts but not Add New?
For one of my custom post types I want a specific user to be able to edit existing posts created by admin but not be able to Add New posts.
How can this be done?
If I define the user role as not ...