Reply To: custom theme appears to be overriding BP standard pages
So, I found the bp_is_members_directory() function, and have added that to the stack. Regrettably, I’m struggling to figure out how to use get_template_part(). Any advice is valued.
<?php while (have_posts()) {
the_post();
if(is_cart() || is_checkout() || is_account_page() || is_wc_endpoint_url()) {
get_template_part('templates/page', 'woocommerce');
} elseif( bp_is_members_directory()) {
// proven to get here at the correct time -- but how to invoke the members/ templates correctly?
get_template_part('members', 'buddypress');
}
get_template_part('modules/module', 'loop');
}