是否有可能爲buddypress製作一個自定義頁面,其URL如下所示:http://domain.com/custom_page?我通過搜索谷歌找到了一些答案,但它不創建自定義頁面。我在這裏有一個代碼,我在其中一個博客中找到。是否有可能在buddypress中製作一個自定義頁面
define('BP_FUN_SLUG','fun');
功能bp_show_fun_page(){
global $bp, $current_blog;
if ($bp->current_component == BP_FUN_SLUG && $bp->current_action == '') {
// The first variable here must match the name of your template file below
bp_core_load_template('fun', true);
}
}
ADD_ACTION( 'WP', 'bp_show_fun_page',2);
但這段代碼不工作...有沒有人知道如何做到這一點?謝謝
看來BuddyPress的改變了它的自定義頁面交易的方式。我目前遇到同樣的問題,並試圖找到如何解決它。 – Rudiger
Rudiger,你看到問題並修復了嗎? – balamurugan