<p>You'll never need to put Twig tags within other Twig tags... Try it like this:</p>

<pre><code>{% include "partials/includes/page-header" with { 'title' : entry.heading } %}
</code></pre>

CC BY-SA 3.0
2014-09-12T15:21:02.960Z
2014-09-12T15:21:02.960Z
Lindsey D
<p>I have this:</p>

<pre><code>{% include "partials/includes/page-header" with { 'title' : '{{ entry.heading }}' } %}
</code></pre>

<p>But it seems that nothing I do will actually pass <code>{{ entry.heading }}</code> as 'title' in the include.</p>

<variable><include>
How would I pass and entry's field value to an include?
# How would I pass and entry's field value to an include?

(Asked by: username_0 on 2014-09-12)

I have this:
{% include "partials/includes/page-header" with { 'title' : '{{ entry.heading }}' } %}

But it seems that nothing I do will actually pass {{ entry.heading }} as 'title' in the include.

**Tags:** variable, include

---

## 1 answers

### Answer by username_1 on 2014-09-12. Score: 11 | Accepted answer

You'll never need to put Twig tags within other Twig tags... Try it like this:
{% include "partials/includes/page-header" with { 'title' : entry.heading } %}


---

