The DW Q&A plugin produces links to author/questioner pages in this format:
http://mywebsite.com/questions/?user=useame
In my custom theme, multisite, I need them to be in this format:
I had added this to functions.php, based on a function in Buddypress:
function modified_author_link ( $user_id = 0, $user_nicename = false, $user_login = false ) {
if ( empty( $user_id ) ) { retu;
}
$user_info = get_userdata( $user_id );
$useame = $user_info->user_login;
$domain = trailingslashit( network_home_url() . '/' . $useame );
retu $domain;
}
add_filter( ‘author_link’, ‘modified_author_link’ );
But it doesn't do anything. What am I doing wrong? Other suggestions?