Hi,
I’d like to change the /author/ base slug to /journalist/
I found the following code to do that:
//change /author/ slug to /journalist/
function new_author_base() {
global $wp_rewrite;
$myauthor_base = 'journalist';
$wp_rewrite->author_base = $myauthor_base;
}
add_action('init', 'new_author_base');
that seems simple enough and works on all of the author links in the bylines, bios and such.
However, the permalink for the author pages are still site.com/author/name. I get a 404 page if I access site.com/journalist/name
I’ve resaved permalinks and cleared caches.
Should the code snippet have reset the permalink to /journalist/ ? If so, thoughts on why it isn’t working?
Thanks,
Chris