Php include statment issue with page template

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:

$path .= "/api/index.php";

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:

Thank you,

Read more here: Php include statment issue with page template

Leave a Reply

Your email address will not be published. Required fields are marked *