Changing the author slug in 3.3
-
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:
https://www.domain.com/author/craigyou use:
https://www.domain.com/craigI 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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Changing the author slug in 3.3’ is closed to new replies.