因此,我試圖在用戶登錄後在buddypress的「我的配置文件」選項卡下添加新的導航。使用我的wp-content/plugins目錄(buddypress目錄之外)的bp-custom.php文件插入自定義代碼。 這是BP-custom.php文件中的代碼我有(這就是我的全部!)Buddypress bp_core_new_nav_item()函數無法在「我的配置文件」選項卡下創建新的導航項
<?php
//place for custom buddypress functions
bp_core_new_nav_item(
array(
'name' => 'feedback',
'slug' => 'Feedback'
));
?>
我在我的瀏覽器有以下錯誤。 --------- 服務器錯誤 網站在檢索時遇到錯誤http://myhostname.com可能是因爲維護或配置不正確 --------- 我使用的是frisco for buddypress theme ,不知道這是否是我的問題的一部分。 我能做些什麼來解決這個錯誤? (移動bp-custom?濫用函數?主題不兼容?)如果你給我正確的答案,我會評價你。提前致謝! -Alex