I have an API located in folder under my root. I already made new page template as advised on this link: How to add a PHP page to WordPress?
And I included my API index.php as the following:
<?php $path = $_SERVER['DOCUMENT_ROOT']; $path .= "/api/index.php"; include_once($path); ?>
When I load the page, the index.php has been included to the word press page but with missing css/js files.
I already tried to include the css by calling them from the template heard but faild to call the js related to the API folder.
My question is: can I call all css/js included under my API folder from the same page template I created in my first step, so all the API will use only one php code inside one page to run probably:
Read more here: Php include statment issue with page template