在WordPress主题中创建page.php文件

时间:2019-06-20 22:00:39

标签: php html wordpress

在我的实习中,他们要求我从互联网上的静态免费网站模板创建wordpress主题。我是一个绝对的初学者,并尝试按照他们给出的步骤进行操作,但是我目前仍处于困境。我真的不知道如何使用page.php文件包含或连接网站上的其他html页面(index.html除外)。
我该如何处理?

1 个答案:

答案 0 :(得分:0)

1)您可以从WordPress仪表板菜单部分添加页面

参考:https://codex.wordpress.org/WordPress_Menu_User_Guide

ii)您可以在WordPress(page.php)中创建页面模板

参考:https://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/            https://developer.wordpress.org/themes/template-files-section/page-template-files/

请根据您的要求使用以上任一选项