I have wordpress website that I have converted to html.
I only need one page from it.
I added this page to the directory of the second wordpress website. test.com/html-page
My problem is: I want to add header and footer of the second website in it.
I have deleted the header and the footer of the html page and change it to php then added header and footer like this
code:
<?php get_header(); ?>
<!DOCTYPE html>
<!-- here is the page content-->
</html>
<?php get_footer(); ?>
But it doesn't show anything at all
CodePudding user response:
Simply use
<?php include 'includes/header.php'; ?>
replace the "includes/header.php" with the php file you actually want