bob bob
asked 10 years ago

I run buddypress and I would like to change the author to employees
Example:
http://sitename.com/author/testuser  
to
http://sitename.com/employees/testuser   
Thank you!
 

bob bob
replied 10 years ago

Also how would I updated to the newest version and my related posts on the questions have disappeared.

2 Answers
Dom Amor
answered 10 years ago

You could just do a 301 redirect from author to employees. That way future updates of DW Q&A wont over write a patch. Just my thought anyway. 

shubhra
answered 10 years ago

If you don’t want to use a plugin, add this code in your functions.php

 add_action(
 'init'
 , 
 'change_wp_author_base'
 );
 function
 change_wp_author_base() {
 global
 $wp_rewrite
 ;
 $author_slug
 = 
 'employees'
 ; 
 // changed author slug name
 $wp_rewrite
 ->author_base = 
 $author_slug
 ;
 }
Powered by DW Question & Answer Pro