我使用20的十一我的主題我創建一個PHP頁面下它命名爲這裏的results.php results.php是我的代碼:爲什麼我有錯誤使用wordpress調用未定義的函數get_header()?
<?php
get_header(); ?>
<?php get_footer(); ?>
從我的index.php:
<?php get_header(); ?>
<a href="wp-content/themes/twentyeleven/result.php">Main</a>
<?php get_footer(); ?>
你在用'result.php'文件製作一個自定義頁面嗎? –
yes ---........ –
你能否給我們提供一些關於問題點的更多細節。因爲,就我看到的方式而言,如果您使用的是正確的二十一個模板,則可以使用http://yourdomain.com/result.php –