Is there any way to should and author profile bio under a post of a specific author?
Hi There,
You need to setup a child theme first: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57.
After that adding this custom code under functions.php
file locates in your child theme:
function add_author() {
if( is_singular('post') ){
$author_id = get_the_author_meta('ID');
echo do_shortcode('[author title="About the Author" author_id="'.$author_id.'"]');
}
}
add_action( 'x_before_the_content_end', 'add_author', 10 );
Hope it helps
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.