Author page not loading the authored post archives

Solution: 1. Please add this code in your theme’s or child theme’s functions.php file: function get_user_id() { $author = get_user_by( ‘slug’, get_query_var( ‘author_name’ ) ); return $author->ID; } add_shortcode( ‘get_user_id’, ‘get_user_id’ ); Register the ‘get_user_id’ shortcode first in Toolset >> Settings >> Front-end Content >> Third-party shortcode arguments. Then use shortcode like this in the … Read more