Hello-
How can I redirect the author link that shows up when someone posts a question or answer to their UltimateMember profile page?
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.
Worked perfectly! Thanks!
You’re welcome, my friend. Let me know if there is anything else I can help you with.
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.
I have answered your question in the following question: https://www.designwall.com/question/dwqa-author-links-mis-direction/
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?
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.
Worked as a charm, nice!
Please login or Register to submit your answer