2014-01-20 15 views
0

我升級WordPress 8.然後創建一個新的頁面測試。Wordpress 8頁 - {slug} .php不工作?

slu of的這個網頁是測試,所以我創建一個新的文件在主題direcory。

頁testing.php

然後我運行測試正在添加不上頁testing.php文件。

請大家幫忙。

謝謝。

+0

所以,如果這不是那麼工作就意味着page.php文件模板被用來顯示此頁面。對? –

回答

1

我不確定有什麼問題,因爲提供的信息很少。但我想,如果你有一個自定義頁面模板集,那就是問題所在。根據WordPres模板層次結構。優先如下: -

Page display 

Template file used to render a static page (page post-type) 

1. custom template file - The Page Template assigned to the Page. See get_page_templates(). 
2. page-{slug}.php - If the page slug is recent-news, WordPress will look to use page-recent-news.php 
3. page-{id}.php - If the page ID is 6, WordPress will look to use page-6.php 
4. page.php 
5. index.php 

來源:http://codex.wordpress.org/Template_Hierarchy