I am working on a project for a friend making some edits to a PHP landing page. They have sent me all assets for the single landing page. This includes associated PHP, JS, CSS, images, etc. But its just for that particular landing page template, not the entire site. The landing page PHP file has WordPress dependencies. I’m planning to work on it on a local server.
Crazily enough I’ve never encountered this. I have always worked in WP with a full theme installed.
How can I render the provided landing page PHP and all its associated assets without it being part of a theme?
I’ve attached a photo of the bundle sent to me as it appears at its root.
SCREENSHOT OF THE BUNDLE SENT TO ME AS IT APPEARS AT ITS ROOT
Any guidance would be so apprecaited! Thanks!
You can load the WordPress dependencies by including the
wp-load.php
script which will make everything available to your script.WordPress still needs to be setup and configured with database connection by editing
wp-config.php
.