Hello-
There’s something funny happening with the author links on my DWQA page. I have 2 questions asked on the page (site is new). Clicking the name/photo of the newest author directs to the user page of the person logged into the session, not the author. Clicking the name/photo of the author of the older question links to the user page of the author of the newer question (immediately above it).
Several weeks ago I added a snippet provided to me by DWQA to get the author links to redirect to user pages, but this is weird and new.
Thank you.
Please send me username & password of your site for further checking.
Hi Dominic-
Sorry for the slow response, it’s been hectic over here. Is this a private conversation or is there an email address I can send the info to?
Thanks,
Janna
You can use the private answer to send me your username & password of your site.
I have helped you resolve this issue, you can check your site now.
Hello Dominic-
From my computer it’s not fixed. The main DWQA page “Q&A Forum” still links to the wrong person.
Can you tell me what you did on the site?
Janna
Please open the conten-question.php file in the templates folder of the Q&A plugin then find the line 25, replace it with the following code:
<?php printf( __( '<span><a href="%s">%s%s</a> %s %s ago</span>', 'dwqa' ), home_url() . '/user/' . get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) , get_avatar( $user_id, 48 ), $text, $time ) ?>_nicename' ) , get_avatar( $user_id, 48 ), $text, $time ) ?>
Please login or Register to submit your answer