# ACF and Sage 9?

**URL:** https://discourse.roots.io/t/acf-and-sage-9/12834
**Category:** plugins
**Created:** 2018-07-04T05:39:23Z
**Posts:** 6

## Post 1 by @solarnebula27 — 2018-07-04T05:39:23Z

Hi all! I’m pretty new to Wordpress theme development, but very well versed with HTML / CSS / JS. Recently, I was introduced to Sage and began to tinker with the different components to start learning Wordpress dev. I set up a Docker container with a fresh Wordpress install, installed Sage, messed around a bit with the code.

I then installed ACF via the built in plugin menu on the admin panel. I configured a few fields, set up a filter to export the data, but no matter what I do the data is not showing up on the page I would like it to. Couldn’t find any resources but it must be something silly I’m doing wrong. Any help would be appreciated!!!

---

## Post 2 by @knowler — 2018-07-04T05:53:04Z

Are you using the following for setting up the filters?

> **[Blade Templates | Sage Documentation | Roots](https://roots.io/sage/docs/blade-templates/#passing-data-to-templates)**
>
> Want to use Laravel’s Blade templating engine in a WordPress theme? Sage’s theme templates use Blade, allowing for DRY templates.

:point_up: This is the simplest way of passing the ACF data to the templates.

There is also the Controller option (comes packaged with Sage):

> **[soberwp/controller](https://github.com/soberwp/controller/tree/9.0.0-beta.4#usage)**
>
> Composer package to enable a controller when using Blade with Sage 9

I’m personally more familiar with using controllers.

Also, can you post what you’ve tried so far.

---

## Post 3 by @alwaysblank — 2018-07-04T06:05:19Z

Certain versions of Controller prevent filters from working correctly. Try removing Controller if you aren’t using it.

---

## Post 4 by @solarnebula27 — 2018-07-05T12:58:28Z

Here’s my Blade filter code:

 ![25%20AM](https://discourse.roots.io/uploads/default/original/2X/a/a3953cdd4cf3c537325317f25813484f51ee2dd5.png)

I changed it from the specific page that I was testing on (home), to all of the pages in an attempt to get it to work.

Here’s my code trying to call the data:

 ![41%20AM](https://discourse.roots.io/uploads/default/original/2X/0/0ba23e6a4529972a40cecccd21b30ce3331b605c.png).

---

## Post 5 by @solarnebula27 — 2018-07-05T13:02:46Z

Holy crap, THANK YOU! This was the solution.

For anyone reading this researching the same problem, just remove Controller from your composer.json and run composer update.

---

## Post 6 by @MyNerv — 2018-07-15T06:05:54Z

Aside: for best practice use the templating language in blade templates, rather than raw php:

```
<h3>My name is {!! $first_name !!}</h3>
```
