来自仪表板外观问题的 wordpress 自定义主题 posttype

wordpress custom theme posttype from dashboard appearance issue

我做了一个静态 html 页面,我想 运行 这个页面在本地使用 wordpress (wamp)。我把所有必要的文件放到 wp_content->themes->theme文件夹名称,例如 footer.php index.php header.php functions.php style.css 并制作了一页模板名为 custompage.php 和一页-about-us.php.I 从 wordpress 仪表板制作我的页面,我通过向 functions.php 添加一些代码手动制作导航菜单,并将三个主题位置加载到 wordpress appearance->menus->menu settings.My links我的页面似乎工作正常但我的问题是当我点击一个页面例如 page-about-us.php 不显示编辑页面 wordpress 仪表板中的内容但显示我在我的 page-about-us.php file.In 当我 link 到页面显示我在 wordpress 编辑中写的内容时我想要的其他词 page.I 假设这是用 functions.Which 函数完成的或者做什么解决这个问题?提前谢谢你。

要从关于我们的 wordpress 管理仪表板页面检索数据,我只需要编写代码 while(have_posts()) : the_post(); the_content(); 结束;在 page-about-us.php 文件内