Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个静态网站,但是根据页面,我将能够编辑 WordPress 中的一些内容。
我创建了 homage,它看起来很棒,然后我复制了页面,将其重命名为about.php,并更改了一些代码。
about.php
当我访问网址时,关于页面不会index.php再次出现。我该如何解决这个问题?
index.php
I use Theme Mantra with which you can choose the display of each page to different settings and add sidebars as you want.
WordPress 可能会使用不同的模板来呈现您请求的 URL。
我建议查看 WordPress 如何查找模板:http ://codex.wordpress.org/Template_Hierarchy :
“当 WordPress 显示某种类型的页面时,它将使用哪个模板文件?”
还有一个视觉概览。
然后你应该能够根据你的目标命名文件。
我有一个如下表:
ID Title StartDate EndDate 1 PromoA 2012-06-01 2012-08-01 2 PromoB 2011-01-01 2011-02-01 3 PromoC 2012-09-01 2012-10-01 4 Pr