Can';t在wordpress中添加自定义页面
在wordpress中,我创建自定义页面Can';t在wordpress中添加自定义页面,wordpress,wordpress-theming,Wordpress,Wordpress Theming,在wordpress中,我创建自定义页面 <?php /*custom page template*/?> 并通过filezilla在wp content/themes/twentytwenty/templates 但是当从仪表板添加页面时,我找不到我的自定义页面。例如:模板的名称是custom 在wp-content/themes/twentytwenty中添加custom.php 及 在custom.php之上添加 <?php /* Template Name: cu
<?php /*custom page template*/?>
并通过filezilla在wp content/themes/twentytwenty/templates
但是当从仪表板添加页面时,我找不到我的自定义页面。例如:模板的名称是custom 在wp-content/themes/twentytwenty中添加custom.php 及 在custom.php之上添加
<?php /* Template Name: custom */ ?>
您创建的是一个页面模板,而不是新页面本身。您需要在“页面”下添加新页面,并在“页面属性”下选择新模板。我在“页面属性”下找不到新模板