José Antonio
asked 6 years ago

Hi, I need to know how I can redirect from questions dashboard to profile file of Ultimate Press.

I have tried this but don't work:

 

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 ) ?>
Thanks in advance
4 Answers
DominicStaff
answered 6 years ago

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

DominicStaff
answered 6 years ago

You can download the dwqa-templates folder from here: https://www.dropbox.com/s/twzmf8d2nssyedc/dwqa-templates.zip?dl=0
Then add this folder to your theme folder. 

invertin
answered 6 years ago

Dominic, Thanks a lot!!
 

invertin
answered 6 years ago

Thanks Dominic, a last question in this new code the url link to the author category but I need a link to the user category.
Thanks in advance
José Antonio 

Dominic Staff
replied 6 years ago

Yes, I have provided the code to redirect link with Ultimate Member profile can not link to the user category.

invertin
replied 6 years ago

Yes, but I need a link to the user folder /user not y o the author folder /author.

Thanks in advance

Powered by DW Question & Answer Pro