Title: Remove post fields for specific User Role
Last modified: August 19, 2016

---

# Remove post fields for specific User Role

 *  Resolved [bweb79](https://wordpress.org/support/users/bweb79/)
 * (@bweb79)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/remove-post-fields-for-specific-user-role/)
 * I’m trying to learn php, but am not very good with it yet. I’m trying to delete
   some post fileds for specific user roles. “Author” to be exact. This is what 
   I have so far. It deletes the field for the “Author” role, but also for admin.
   I just want to delete the field for “Author’s”.
 *     ```
       function remove_post_excerpt_field() {
       	if($role=='author')
       	remove_meta_box('postexcerpt', 'post', 'normal' );
       }
       add_action('admin_menu', 'remove_post_excerpt_field');
       ```
   

Viewing 1 replies (of 1 total)

 *  Thread Starter [bweb79](https://wordpress.org/support/users/bweb79/)
 * (@bweb79)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/remove-post-fields-for-specific-user-role/#post-1800736)
 * Realized I posted this in the wrong section. New post in the right area.
 * [http://wordpress.org/support/topic/remove-post-meta-fields-based-on-user-role?replies=1#post-1822418](http://wordpress.org/support/topic/remove-post-meta-fields-based-on-user-role?replies=1#post-1822418)

Viewing 1 replies (of 1 total)

The topic ‘Remove post fields for specific User Role’ is closed to new replies.

## Tags

 * [post fields](https://wordpress.org/support/topic-tag/post-fields/)

 * 1 reply
 * 1 participant
 * Last reply from: [bweb79](https://wordpress.org/support/users/bweb79/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/remove-post-fields-for-specific-user-role/#post-1800736)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
