loading templates problem
-
Hello, I got a little error here.
I’m trying to load the template for a single item.
My start point was the bp-groups plugin.
Here’s the function called if it is a single item :
function classifieds_screen_classified_home() {
global $bp;
if ( $bp->is_single_item ) {
if ( isset($_GET['new']) ) {
// Delete classified request notifications for the user
}
do_action( 'classifieds_screen_classified_home' );
bp_core_load_template( apply_filters( 'classifieds_template_classified_home', 'classifieds2/classified-home' ) );
}
}It does go in that function since it exits if I put “exit;” at the beginning of the function.
But the template does not load; I got a Sorry, that page was not found alert.
- I’ve checked the name of the files, it’s ok : I have a bp-themes/bpmember/classifieds2/classified-home.php file.
- If I put a “exit” at the top of classified-home.php, it does not exit -> so it is sure the template does not loads.
- If I comment the bp_core_load_template line, it goes to my profile (.
…/members/admin)
Does anyone have an idea of what the problem could be ?
Thanks !
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘loading templates problem’ is closed to new replies.