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("http://www.mysite.edu/_sports/static/season_box.html"); ?>
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.
Leave an answer