我試圖在/ html /目錄的開頭添加一個文件(/wp-load.php)。我試圖從/wp-content/themes/pw-steel-orange/index-load.php包括它,但我總是得到錯誤信息需要wp-load.php 3個目錄返回
Warning: require_once(../wp-load.php) [function.require-once]: failed to open stream: No such file or directory in /nfs/c07/h01/mnt/102799/domains/platyworld.com/html/wp-content/themes/pw-steel-orange/index-load.php on line 1
Fatal error: require_once() [function.require]: Failed opening required '../wp-load.php' (include_path='.:/usr/local/php-5.2.6-1/share/pear') in /nfs/c07/h01/mnt/102799/domains/platyworld.com/html/wp-content/themes/pw-steel-orange/index-load.php on line 1
難道我做錯了什麼?我雖然../帶來的包括到開始的目錄
很抱歉,如果這是一個重複,我找不到我的搜索與此相關的東西...
當然,WordPress應該加載你的主題文件,而不是其他方式。除非你真的必須,否則我不會推薦加載wo-load.php。 – dave1010 2010-09-23 15:18:51