Custom Templates not Loading after BP update 1.7.2 to 2.4
-
Hi. I recently inherited a site with a fair bit of BuddyPress customizations done from 2013. It’s running on BP 1.7 so the first step was to update to the latest version. But the custom templates (ie. ‘template-user-account.php’) are not showing up after the update.
– Most of the custom template files are in the child theme’s root (untouched)
– Already moved any other custom BP files from /bp-legacy/buddypress to /childtheme/buddypressI have 2 copies of the site installed locally with before (BP 1.7) and after (BP2.4) update versions to do a detailed comparison. The WhatTheFile plugin shows different files used to generate the same (User Dashboard) page:
Original Site (BP 1.7.2): created from – ‘template-user-account.php’ file
Updated Site (BP 2.4): created from – ‘page.php’ and ‘content-page.php’BP 1.7 introduced a new template loading procedure that mirrors WP’s Template Hierarchy. If the Original site is using BP 1.6, it may make sense how the update caused templates to be loaded differently, and hence produce the difference highlighted above.
But since the Original site is already using 1.7.2, what could cause the Updated Site not to be able to load the correct ‘template-user-account.php’ file?
My best guess so far is that this isn’t working after the update:
function user_dashboard_template() { bp_core_load_template( 'template-user-account' ); }
Thanks for any insights or suggestions.
- The topic ‘Custom Templates not Loading after BP update 1.7.2 to 2.4’ is closed to new replies.