Php 制作模板页面wordpress
我想在wordpress中为我的页面创建一个新模板。我应该如何处理。我已经在我的主题中创建了一个新的php文件Php 制作模板页面wordpress,php,wordpress,Php,Wordpress,我想在wordpress中为我的页面创建一个新模板。我应该如何处理。我已经在我的主题中创建了一个新的php文件 它将允许我重新设计我的页面。您必须在主题目录(/wp content/yourTheme)中创建myTemplate.php。然后,您可以复制/粘贴,然后修改tempalte的代码,或者只添加 <?php /* Template Name: Page Template Name */ get_header(); ?> 在文件的顶部
它将允许我重新设计我的页面。您必须在主题目录
(/wp content/yourTheme)
中创建myTemplate.php
。然后,您可以复制/粘贴,然后修改tempalte的代码,或者只添加
<?php /* Template Name: Page Template Name */ get_header(); ?>
在文件的顶部