# BuddyPress with Sage 10

**URL:** https://discourse.roots.io/t/buddypress-with-sage-10/20061
**Category:** sage
**Tags:** sage10
**Created:** 2021-02-11T01:40:49Z
**Posts:** 2

## Post 1 by @tom_barber — 2021-02-11T01:40:49Z

If anyone has a solution for getting BuddyPress working with Sage 10, it would be really appreciated if you could share how you got it working…

I’ve tried fiddling with a few methods for a couple of hours now like the following. I’m sure it’s really simple but can’t wrap my head around it!

```
use function Roots\view;

add_filter('bp_template_include_theme_compat', function() {
  echo view('page');
  return '';
});
```

I’m just getting the following error

```
Unrecognized extension in file: /srv/www/bedrock/current/web
```

---

## Post 2 by @tom_barber — 2021-02-11T03:16:36Z

OK kind of got it working by adding a filter

```
add_filter('bp_template_include_theme_compat', function($template) {
    if (is_buddypress()) {
        echo view('page');
        $template = '';
    }
    return $template;
});
```

Then adjusting bedrock/web/app/themes/sage/index.php slightly

```
if(!is_buddypress()) {
  echo \Roots\view(\Roots\app('sage.view'), \Roots\app('sage.data'))->render();
}
```

This is a bit of a hacky solution but it’s allowing me to work on it for now.

If anyone has a better answer let me know :slight_smile:

---

## Post 3 by @system — 2021-03-25T01:40:50Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
