기본 페이지가있는 웹과 동일한 템플리트를 사용하려는 다른 네 개의 섹션을 작성하려고합니다.WordPress에서 새 사용자 정의 페이지를 작성해야합니다.
<?php
/**
* The main template file.
* @package RestImpo
* @since RestImpo 1.0.0
*/
get_header(); ?>
:
Fatal error: Call to undefined function get_header() in C:\xampp\apps\wordpress\htdocs\wp-content\themes\restimpo\index_wealth.php on line 7
내 페이지는이 방법을 시작 : 나는 'index_wealth.php'내가 여기에 링크를 사용할 때 내가 갖는 같은 테마의 폴더에 '의 index.php'를 복사 한
메인 페이지를 네 번 복제해야하며 모든 사람이 헤더가 동일해야합니다. 어떻게해야합니까?
이 시도하지만 난 그냥 이상의 오류를 받고 있어요 : 도움을
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();
감사합니다! ,
<?php
/*
Template Name: My Custom Page
*/
그렇지 않은 경우 :