-
I am trying to show the user profile on the author archive, in my case, it is ’/profile/user/’.
Using the shortcode ‘[userpro template=view’ does not work, Fouad helped me earlier with this: [userpro template=view user=’.get_the_author_meta(‘user_login’).’] but that doesn’t work. Please help.
Thank you
Hi Mohammed,
Apologies for the delay.
Can you please add this code in your theme’s function.php file.
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 );
}This will link to author archive instead of userpro profile permalink.
Please try this and Let me know further. ThanksI can not see profile picture : http://mwsz.hu/profile/Zita/ just the name. Why?
SOLVED ! My avatar pictures were forbidden at wp settings.
Hi Mohammed,
Apologies for delay. As you said you want to show UserPro profile on the author archive page and the url that you have shared – its redirecting to UserPro profile. Please correct me if I misunderstood your query. Also, Can you please share the URL from which its redirecting to UserPro profile via this link http://codecanyon.net/user/DeluxeThemes#contact so that I can see this in action.
You must be logged in to reply to this topic.