How to change author base without front
-
I am currently using this code:
function change_author_permalinks() { global $wp_rewrite; $wp_rewrite->author_base = 'connect/member'; } add_action('init','change_author_permalinks');
but my current
front
set on my blog is:share
So the above generates a URL like so:
http://example.com/share/connect/member/john-smith
But I don’t want
/share/
as part of this author URL. I cannot remove the/share/
front as it is needed for other parts of the site.How do I set the author URL to not use
front
?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to change author base without front’ is closed to new replies.