How do I create a single WordPress page that will use PHP to include different HTML files based on a vaule in the URL?


I have used PHP on a page to include HTML files on a page such as:

<?php require(""); ?>

This works well for including a single file that gets updated frequently.

I am hoping to find a way to use PHP code in a single WordPress Page that would included one of several HTML files depending on the URL. The idea would be to be able to create a URL to a WordPress page that would have the name of the HTML file as a variable that the PHP script would use to identify the desired HTML file to include.

Ron Smith 3 years 2020-07-14T01:10:26-05:00 0 Answers 69 views 0

Leave an answer