I've been trying to achieve something in my WordPress project and could really use your help. Here's my situation:
I have a PHP file called "external.php" that is located in my theme directory. Inside this file, I have defined some variables that I need to access in my functions.php file in order to display them on the front end.
What I want to do is include the "external.php" file inside my functions.php file and then echo out these variables on specific pages or templates in WordPress.
I've looked around and seen some examples of including PHP files in WordPress using the `include()` or `require()` functions, but I'm not exactly sure how to go about it in my specific situation.
Can someone guide me through the process of including the "external.php" file inside my functions.php file and then echo out the variables from that file on the front end? I would really appreciate it.
Thanks in advance!