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!
2 Answers
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.
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
;
}
Please login or Register to submit your answer
replied 11 years ago
Also how would I updated to the newest version and my related posts on the questions have disappeared.