-
Hi there,
Is there any possability to redirect the author/username page to profile/username?
Thank you
ZokerHi there,
I added the following to my theme functions.php to accomplish it:
PHP1234567891011function 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')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’)
Thank you, but a implementation with a setting to turn it on/off in backend would be better for update propose 😉
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. 🙂
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?
You can add it to child theme. 🙂
Yes your idea is fine, I am just trying to save you time 😀
I’ll add it as option , it’s not that difficult. 🙂 Thank you
I have a list of minor updates and list of updates always, I think I will release a minor update in next day or two. I can only promise that it will be added in the next few subversions depending on updates priority.
Hello,
has this been added? I am not sure how to do this.
I am trying to have the author page show up instead of the profile page, but it keeps redirecting and I have no clue how to update.
You must be logged in to reply to this topic.