# Search&Filter plugin with Roots

**URL:** https://discourse.roots.io/t/search-filter-plugin-with-roots/2757
**Category:** uncategorized
**Created:** 2015-01-10T16:28:03Z
**Posts:** 4

## Post 1 by @djmtype — 2015-01-10T16:28:03Z

I’m using [Search&Filter](https://wordpress.org/plugins/search-filter/) plugin with a complete fresh install of Roots 7.0.3 and WP 4.1 with no other plugins installed. The plugin works fine with WP’s own themes, including TwentyFifteen and TwentyFourteen. But, with Roots it fails. Clicking Search&Filter’s Search button reloads the same page and returns this error:

```
Warning: Cannot modify header information - headers already sent by (output started at ./wp-content/themes/roots/templates/head.php:2) in /Users/me/Sites/mysite/wp-includes/pluggable.php on line 1178
```

I understand, plugin compatibility may be out of scope for this forum, but perhaps someone may know the reason without giving it too much thought?

---

## Post 2 by @ben — 2015-01-10T16:39:06Z

That plugin doesn’t play nice with the theme wrapper.

---

## Post 3 by @djmtype — 2015-01-10T17:49:09Z

@benword Placing `<?php ob_start(); ?>` just before `<?php get_template_part('templates/head'); ?>` inside **base.php** will make the plugin function without error, but is this a good idea?

Thanks much for the quick response.

---

## Post 4 by @ben — 2015-01-10T19:58:08Z

Nice! That should be fine

Thanks for getting back with a fix

/cc @swalkinshaw @Foxaii
