@alexandra55
8 years, 9 months ago
@shanebp Thank you so much. I’ll try that
It seems that this might work
/* check if custom function file is active */ if( file_exists( WP_CONTENT_DIR . ‘/meso-custom-functions.php’ ) ) { include_once( WP_CONTENT_DIR . ‘/meso-custom-functions.php’ ); }
add_action( ‘template_redirect’, ‘authorblog_template_redirect’ ); function authorblog_template_redirect(){ if(is_author()){ if(get_query_var(‘author_name’)) : $curauth = get_user_by(‘slug’, get_query_var(‘author_name’)); else : $curauth = get_userdata(get_query_var(‘author’)); endif; wp_redirect(‘http://www.your wesite name/members/’. $curauth->nickname ); } }
@bowromir thank you so much for your reply. Unfortunately, it did not work for me. It seems that there is a problem with the following function: function themename_redirect_author_archive_to_profile
I tried to use BP Blog Author Profile Link plugin. It did not work for me