This little “ PHP include” guide, will show you how to include a PHP-file in your WordPress theme (using a relative path). This snippet isn’ t so much a “ WordPress snippet” , but really just the PHP include function, using WordPress get_template_directory to get the relative path for the file….
How to include a PHP file in WordPress
Full Disclosure: This webpage may contain affiliate links, in which the website owner would receive a commission for purchases made. This does not affect your purchase cost.