[英]Enabling permalink pages in WordPress
我正在使用<a href="<?php the_permalink();?>" Take me to another page </a>
将用户带到一个永久链接页面。
但是,当我这样做时,它表示未No input file specified.
我的主题文件夹中有以下文件:
footer.php
functions.php
header.php
style.css
index.php
为什么这不起作用-我是否缺少另一个php模板文件?
您的模板文件必须位于/ wp-content / thmes / your-theme /下的目录中。 将它们插入主题目录后,您必须在wordpress管理中激活主题。
您还至少需要一个index.php文件。 那就是放置内容功能的文件。 在index.php中,包含带有WordPress函数get_header()和get_footer()的header.php和footer.php。
我认为您最好阅读以下文档:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.