Would really appreciate it if anyone can help with this. I am trying to remove the /author/ slug in author pages so that instead of:
http://www.domain.com/author/craig
you use:
http://www.domain.com/craig
I have the following in functions.php:
function set_new_author_base() {
global $wp_rewrite;
$author_slug = '';
$wp_rewrite->author_base = $author_slug;
}
add_action('init', 'set_new_author_base');
which worked in wordpress 3.2.1. However in 3.3, this function breaks all pages. Categories, posts and author pages work, but all pages return a 404. I am guessing this is because of the newly rewritten permalink engine in 3.3 but I stuck getting it to work again.
The site is not live yet so I don't have a link, unfortunately.