Hi there,
I have the issue where the Twitter link in the Author box is showing the wrong link (showing the blogpost URL with the “@” Twitter username added on the end).
I’ve tried adding the full Twitter URL in Users->Your Profile as advised HERE, but the issue is still there.
I also can’t get any other social links to show-up - e.g. I cannot add a LinkedIn link, for example. It just doesn’t show up.
You should know that I’ve added this code in my functions.php to append the Author box to the end of all posts:
add_filter( 'the_content', 'custom_author_code');
function custom_author_code($content) {
if ( is_single() ) {
return $content . do_shortcode('[author title="About the Author"]');
} else {
return $content;
}
}
I’ve also the following to allow me to add the full range of HTML to the Authorbox description:
// Disable WordPress sanitization to allow more than just $allowedtags from /wp-includes/kses.php.
remove_filter('pre_user_description', 'wp_filter_kses');
// Add sanitization for WordPress posts.
add_filter( 'pre_user_description', 'wp_filter_post_kses');
// END Disable WordPress sanitization
However removing the above still doesn’t solve the Authorbox social media link issue.
I’ve tried disabling all plugins except Cornerstone, but the issue is still there.
Any ideas what’s going on?