Title: role specific permalink structure
Last modified: August 19, 2016

---

# role specific permalink structure

 *  [zyrq](https://wordpress.org/support/users/zyrq/)
 * (@zyrq)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/role-specific-permalink-structure/)
 * Does anyone know if it is possible to have a role specific permalink structure.
   
   role=editor ->example.com/editors/johndoe role=author ->example.com/authors/janedoe
 * Changing the var $author_base = ‘author’ in rewrite.php only allows for 1 instance.
   Where/how to test for the role?
 * Any ideas?Different options? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [zyrq](https://wordpress.org/support/users/zyrq/)
 * (@zyrq)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/role-specific-permalink-structure/#post-1046780)
 * bumpy
 *  Thread Starter [zyrq](https://wordpress.org/support/users/zyrq/)
 * (@zyrq)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/role-specific-permalink-structure/#post-1046794)
 * Well, I guess I’ve read about everything about this in the forums for the last
   couple of hours.
    The closest I got is the reply by jeremyboggs on this thread:
   [http://wordpress.org/support/topic/144217?replies=13](http://wordpress.org/support/topic/144217?replies=13)
   The solution by jeremyboggs works perfectly to change the author_base to a single
   term in a custom function. If I only could retrieve the role of the user/author
 * role=editor ->author_base = ‘editor’
    role=author ->author_base = ‘author’ role
   =member ->author_base = ‘member’ etc.
 * I have tried numerous possiblities but havent come up with a solution.
    Anybody?
   Thanks.
 *  Thread Starter [zyrq](https://wordpress.org/support/users/zyrq/)
 * (@zyrq)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/role-specific-permalink-structure/#post-1046800)
 * OK, interesting conversation…
 * I have this working:
    role=editor ->builds this URL: example.com/editors/johndoe
   role=author ->builds this URL: example.com/authors/janedoe
 * In functions.php I added
    $wp_rewrite->author_base = ‘editors’; work great for
   the editors;
 * Now I only need to have an extra rewrite rule (do I?) that rewrites
    ‘authors’
   to the same as ‘editors’, its just an aka of author. How? which Action? which
   Filter? 2 extra rewrite rules? Have some coffee? Or something stronger?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘role specific permalink structure’ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [author_base](https://wordpress.org/support/topic-tag/author_base/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [role](https://wordpress.org/support/topic-tag/role/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 1 participant
 * Last reply from: [zyrq](https://wordpress.org/support/users/zyrq/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/role-specific-permalink-structure/#post-1046800)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
