Forum Replies Created
-
AuthorPosts
-
Jim GaikoParticipant
In the process of putting together the info for you, I realized I made a mistake — in Advanced Custom Fields, I was only allowing the custom user fields to be visible to Administrators and Editor user roles. Thus when I created a new role, it did not display the custom fields for those with the new role. Sorry for wasting your time on this and thank you for a great plugin.
Jim GaikoParticipantYes, I see the fields when the plugin is deactivated. And I also see the fields for Administrator-level users when the plugin is activated *and* I’m logged in as an Administrator.
I’m trying to set up User Role Editor Pro so that:
1. The new limited-access role can edit the custom fields in their own profile and nothing else in WordPress.
and
2. Administrators can edit the custom user profile fields of these limited-access users.Jim GaikoParticipantSorry, I didn’t explain that very well. The ACF plugin allows me to put custom fields on the user profiles, and it works very well. However, when I create a custom role using the User Role Editor Pro plugin, these fields disappear from the user profile page for any user who has the custom role. The user assigned to have the custom role doesn’t see the fields, and neither does anyone with Administrator privileges when they try to edit this user’s profile. This happens even if I give the custom role access to every capability in the list when I edit their perms on the “wpfront-user-role-editor-all-roles” page. Any suggestions?
Jim GaikoParticipantYes, that’s what I was looking for. Thanks!
Jim GaikoParticipantThanks, giving “edit posts” now allows the user to edit the custom categories on the custom post type.
Is there a way I can restrict this user from editing regular “Posts”? Or at least hide that from the dashboard menu?
Thanks for your help
Jim GaikoParticipantHave you had a chance to test?
Thanks
Jim GaikoParticipantThere’s no other plugin involved – the custom taxonomy and custom post type are created from within functions.php. Here’s the code that creates the taxonomy:
//hook into the init action and call create_book_taxonomies when it fires add_action( 'init', 'create_skilltype_hierarchical_taxonomy', 0 ); //create a custom taxonomy name it topics for your posts function create_skilltype_hierarchical_taxonomy() { // Add new taxonomy, make it hierarchical like categories //first do the translations part for GUI $labels = array( 'name' => _x( 'Skill Types', 'taxonomy general name' ), 'singular_name' => _x( 'Skill Type', 'taxonomy singular name' ), 'search_items' => __( 'Search Skill Types' ), 'all_items' => __( 'All Skill Types' ), 'parent_item' => __( 'Parent Skill Type' ), 'parent_item_colon' => __( 'Parent Skill Type:' ), 'edit_item' => __( 'Edit Skill Type' ), 'update_item' => __( 'Update Skill Type' ), 'add_new_item' => __( 'Add New Skill Type' ), 'new_item_name' => __( 'New Skill Type' ), 'menu_name' => __( 'Skill Types' ), ); // Now register the taxonomy register_taxonomy('skilltype',array('skills'), array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'skilltype' ), )); }
-
AuthorPosts