Redirect author page to profile page – UserPro Forums https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/feed/ Thu, 16 May 2024 23:11:32 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37288 <![CDATA[Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37288 Wed, 14 May 2014 22:52:03 +0000 Zoker Hi there,

Is there any possability to redirect the author/username page to profile/username?

Thank you
Zoker

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37334 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37334 Thu, 15 May 2014 08:58:31 +0000 enigma666666 Hi there,

I added the following to my theme functions.php to accomplish it:

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37335 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37335 Thu, 15 May 2014 09:02:14 +0000 enigma666666 Sorry, I see the code got messed up above.
Here is correct code below:

function change_author_permalinks() {

global $wp_rewrite;

// Change the value of the author permalink base to whatever you want here
$wp_rewrite->author_base = ‘profile’;

$wp_rewrite->flush_rules();
}

add_action(‘init’,’change_author_permalinks’)

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37344 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37344 Thu, 15 May 2014 10:12:56 +0000 Zoker Thank you, but a implementation with a setting to turn it on/off in backend would be better for update propose 😉

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37348 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37348 Thu, 15 May 2014 10:21:39 +0000 enigma666666 I agree, hope the code helped though.

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37365 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37365 Thu, 15 May 2014 12:19:14 +0000 admin Zoker, if you put the above code in functions.php of theme it won’t be overridden with userpro updates. That’s why hooks and filters come to play. They do not need to be added to plugin core. 🙂

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37420 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37420 Thu, 15 May 2014 15:20:45 +0000 Zoker Yes but when I update the theme?

So it would be much better to add it as core function of userpro (just next to the other redirect settings).

Dont you agree?

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37524 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37524 Fri, 16 May 2014 11:34:52 +0000 admin You can add it to child theme. 🙂

Yes your idea is fine, I am just trying to save you time 😀

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37536 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37536 Fri, 16 May 2014 11:59:44 +0000 Zoker Thank you some much 🙂

So you will add it right? 🙂

]]>
https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37555 <![CDATA[Reply To: Redirect author page to profile page]]> https://forum.userproplugin.com/forums/topic/redirect-author-page-to-profile-page/#post-37555 Fri, 16 May 2014 12:45:43 +0000 admin I’ll add it as option , it’s not that difficult. 🙂 Thank you

]]>