I'm trying to create a web that have a main page, and another four sections that I want to use the same template. I've copied the 'index.php' in the theme's folder as 'index_wealth.php' and when I use a link to it I'm getting:
Fatal error: Call to undefined function get_header() in C:\xampp\apps\wordpress\htdocs\wp-content\themesestimpo\index_wealth.php on line 7
My page starts this way:
<?php
/**
* The main template file.
* @package RestImpo
* @since RestImpo 1.0.0
*/
get_header(); ?>
I have to replicate the main page four times, and the header is the same in everyone, how can I do this?
Tried this but I'm just getting more errors:
require_once('C:\xampp\apps\wordpress\htdocs\wp-includes\template.php');
require_once('C:\xampp\apps\wordpress\htdocs\wp-includes\plugin.php');
require_once('C:\xampp\apps\wordpress\htdocs\wp-includes\general-template.php');
get_header();
Thanks for help!