I'm currently developing a site locally in MAMP PRO. When I use get_template_directory() inside of the standard functions.php file, the site path gets output correctly. However, I have a separate enqueue.php file that I use to enqueue my scripts.
I'm using a require to include the enqueue.php file.
require get_template_directory() . '/inc/enqueue.php';
My issue begins inside of enqueue.php. Whenever I try to use get_template_directory(), instead of returning the correct site path, I keep getting the following output:
I can't seem to figure out why the /Users path gets added to the URL when I'm not in the functions file.
Any help would be greatly appreciated.