jkauss
asked 8 years ago

Hello-
How can I redirect the author link that shows up when someone posts a question or answer to their UltimateMember profile page?
 
 

3 Answers
Kevin
answered 8 years ago

Hi jkauss,

Thank you for contacting DesignWall! My name is Kevin and I am happy to be of assistance in this matter.

To solve your issue. You can add the code below to wp-content/themes/your-theme-folder/functions.php

add_action('init','dwqa_theme_change_author_link');
function dwqa_theme_change_author_link() {
	$um_permalinks = new UM_Permalinks();
	add_filter( 'dwqa_get_author_link', array( $um_permalinks, 'profile_url' ) );
}

Warm Regards,
Kevin.

jkauss
replied 8 years ago

Worked perfectly! Thanks!

Kevin
replied 8 years ago

You’re welcome, my friend. Let me know if there is anything else I can help you with.

jkauss
replied 7 years ago

Hi Kevin-
I found a weird bug in this today where author links are acting strange. Just posted a new question about it. Could you have a look?

Thanks.

Dominic Staff
replied 7 years ago

I have answered your question in the following question: https://www.designwall.com/question/dwqa-author-links-mis-direction/

landshark
replied 6 years ago

I just tried to use this code and am getting a 500 error. Is there an update to getting the DWQA author to link to the UM profile?

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. 

Meelis
answered 6 years ago

Worked as a charm, nice!

Powered by DW Question & Answer Pro