Use a BP legacy template in a child theme
-
Hello,
I use WP3.6+BP1.8.1 at http://fablab-lannion.org.
I would like to display the equivalent of the /members/LOGIN/activity page for logged-in users that access to the home page. I copied various templates from /buddypress/members/single/ (activity.php, home.php…) and created a shortcode function that makes the following call :
include( locate_template( array( '/buddypress/members/single/home.php' ), false ) );
The template is loaded but inside of it, calls to various functions like bp_get_displayed_user_nav() return nothing. It seems that $bp->displayed_user data (especially domain and userdata) are empty, which seems to be a possible cause. Is there something I could do to force BP to load appropriate data about the logged-in user in this context ?
Best regards,
Yann
- The topic ‘Use a BP legacy template in a child theme’ is closed to new replies.