I am adding the latest 5 posts into the author box on single post details page. This will not appear on author’s archive page.
Make sure you already enabled the Author Box for Single Post details page. Now follow the steps at below:
Open the functions.php file of child theme and add the following snippets at end of the file. Before editing the file you will keep a backup of your child theme.