Adding post tags without capability edit_posts
Adding post tags without capability edit_posts
Adding post tags without capability edit_posts
OK so I mostly fixed this myself I went into post.php in wp-includes. Changed the ‘protected’ => true, of pending to ‘public’ => true, but every time wordpress updates this will reset (I think) so can anybody mention a permanent way to make this change?
Limit number of users a role can create
Run this once, it will be saved in database. You can run it once by adding it to functions.php and reloading the site once. $user = new WP_User( $user_id ); // the user id you want to have that capability $user->add_cap( ‘edit_others_posts’ ); // or any other capability that you want
Custom Field to a Role?
“edit_published_posts” and “edit_other_post” issue
add_role user capability not working
Show comments of a user post only when they are login
I recommend backing up the database before making any major/bulk changes to it. First you need to get all users with the role “contributors”, then update their roles to “author”. $contributors = get_users(array(‘role’=>’contributor’)); foreach($contributors as $contributor){ wp_update_user(array( ‘ID’ => $contributor->ID, ‘role’ => “author”) ); } echo “done updating contributors to authors”; You could have this … Read more
I used your code and tested the CPT with an author account.The option to add a featured image showing up just fine. So just a heads up that the issue is not related to that specific CPT snippet, you should look elsewhere. Maybe a functions.php cleanup, disable plugins and/or try another theme using the snippet … Read more