( $prev_post ? '' . esc_html__('Previous Post', 'blog-reflection') : '' ), 'next_text' => ( $next_post ? '' . esc_html__('Next Post', 'blog-reflection') : '' ), ) ); // Get the author ID of the current post $blog_reflection_author_id = get_the_author_meta('ID'); // Get the author's avatar URL $blog_reflection_author_avatar_url = get_avatar_url($blog_reflection_author_id); $blog_reflection_author_name = get_the_author_meta('display_name'); // Fetch the current post's author ID $author_id = get_the_author_meta('ID'); // Fetch the author's avatar URL $author_avatar_url = get_avatar_url($author_id); // Fetch the author's name $author_name = get_the_author_meta('display_name', $author_id); // Fetch the author's role $author_role = implode(', ', get_user_role($author_id)); // Fetch the author's social media links (assuming these are saved as user meta) $author_facebook = get_the_author_meta('facebook', $author_id); $author_twitter = get_the_author_meta('twitter', $author_id); $author_linkedin = get_the_author_meta('linkedin', $author_id); $author_instagram = get_the_author_meta('instagram', $author_id); ?>
<?php echo esc_attr($author_name); ?>