Ways to load template files in WordPress
The below methods mostly uses get_template_directory() to retrieve the parent theme directory and get_stylesheet_directory() if you are using a child theme and retrieving the of child theme directory. Using include() and require() These are built-in PHP functions and you can use them to load template files like this. Note that they do not check file … Read more