WordPress Use shortcode outside post editor in theme files

WordPress added function called do_shortcode() using this function you can call wordpress shortcodes outside post editor and you can call shortcode in you wordpress theme .php files.

// Use shortcode in a PHP file (outside the post editor).
do_shortcode('[album]');

Credits

WordPress Functions
Hire a WordPress Expert for your website to create wordpress themes