asked 4 years ago

I have my website on which I m using the dwqa plugin. I’m also using Ultimate User for letting visitors to make accounts and comment or post questions and so on.
The problem is that if someone posts a question or answers , when clicked on the name shown the site is not getting  redirected to that authors profile. How to fix this. 
Also how to show the questions and answers posted by a user in their profile (Ultimate user is used).
I saw previous question related to same issue and tried their solution which were mentioned but the solutions are very old and didnt work. One did but then it wasn’t redirecting to the author profile page but to the profile of the current logged in person.
The site link : mconnects.ga
Kindly help.! 

Sofia Grace
replied 4 years ago

I can assist you with this requirement. Please the details on Skype or mail.

Looking forward to your reply.

Best regards,
Skype ID: live:sofia_6831
Ph : +1347709296
Mail : [email protected]

2 Answers
answered 4 years ago

You can add the following code to the functions.php file of your theme:

add_filter('dwqa_get_author_link', 'dwqa_um_profile_link', 10, 3);
function dwqa_um_profile_link($url, $user_id, $user){
 return um_user_profile_url($user_id);
 return $url;
Miguel Euklides
answered 4 years ago

Hi. I have a very similar problem and asked about it in this forum 1 month ago but still haven’t received any solution. You can see the post here: https://www.designwall.com/question/author-link-doesnt-work-2/#comment-30793
I just tried with the code posted here by Dominic but it doesn’t make any difference. You can check it by visiting my DWQA page: https://pixcina.com/preguntas-y-respuestas/ and clicking on the name of any user. For instance, clicking on “Waterdrop” the link is completely weird and goes to a non-existent direction: https://pixcina.com/preguntas-y-respuestas/%E2%80%9Chttps://pixcina.com/preguntas-y-respuestas/?user=Waterdrop%E2%80%9D
How can I make the link to point to the author page https://pixcina.com/author/waterdrop/ ?

Dominic Staff
replied 4 years ago

Please send me username & password of your site for further checking.

Powered by DW Question & Answer Pro