I want to add the shortcode to the author template so every author’s posts will be nicely displayed. Is there a way to do this so it to embed php code inside shortcode or manage it in some other way? Tks
Ya it can be done. This is where our generic shortcode is needed. Once you have created Generic shortcode, you need to place that shortcode in your author handling template (most probably author.php).
Please check this video and it explain about the generic shortcode creation and code placement. https://www.youtube.com/watch?v=ZFPhnysfRYk . In you case here please copy and paste shortcode in author.php