userpro_user_profile_url failing in logout panel links – UserPro Forums https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/feed/ Wed, 08 May 2024 23:33:58 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/#post-33103 <![CDATA[userpro_user_profile_url failing in logout panel links]]> https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/#post-33103 Mon, 21 Apr 2014 22:57:26 +0000 arohadigital Hi,
I´m using userpro_user_profile_url to convert all frontend profile links to specific user pages (Author archive, etc.)
It is working fine in profile links but it is not working in logout panel links (404), it seems to lose the author parameter.

The code used is:

add_filter(‘userpro_user_profile_url’, ‘userpro_author_url’, 99, 2);
function userpro_author_url($link, $user_id) {
return get_author_posts_url( $user_id );
}

how canI fix it?
Thanks in advanced

]]>
https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/#post-33160 <![CDATA[Reply To: userpro_user_profile_url failing in logout panel links]]> https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/#post-33160 Tue, 22 Apr 2014 09:52:10 +0000 admin Where it is not working? I need more details please

]]>
https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/#post-33163 <![CDATA[Reply To: userpro_user_profile_url failing in logout panel links]]> https://forum.userproplugin.com/forums/topic/userpro_user_profile_url-failing-in-logout-panel-llinks/#post-33163 Tue, 22 Apr 2014 10:10:09 +0000 arohadigital I´ve this shortcode
[userpro template=register]

Then, when I’m logged in I see the ‘display name’ link and ‘edit profile’ link.
But If i click the ‘display name’ or ‘edit profile’ links I get a 404 page.

‘display name’ or ‘edit profile’ links are linking to domain.com/author/ instead of domain.com/author/authorname

]]>