<p>Is <code>bizName</code> your categories field?  Try something like:</p>

<pre><code>{% for category in block.bizName.all() %}
   {{ category.title }}
{% endfor %}
</code></pre>

CC BY-SA 4.0
2018-05-09T00:40:35.973Z
I got this one covered by using .one() also.
Vin
CC BY-SA 4.0
2018-05-08T18:15:43.620Z
2018-05-08T18:19:29.733Z
2018-05-08T18:19:29.733Z
triplethreat23
<p>Trying to template a matrix field that contains the use of categories. I am not a dev but trying to get this working.  This is my attempted but what I get back is something like this instead of the result.</p>

<blockquote>
  <p>{{%content}}";s:12:"customFields";N;s:9:"inReverse";b:0;s:7:"asArray";b:0;s:2:"id";N;s:3:"uid";N;s:10:"fixedOrder";b:0;s:6:"status";a:1:{i:0;s:7:"enabled";}s:8:"archived";b:0;s:11:"dateCreated";N;s:11:"dateUpdate</p>
</blockquote>

<p>Here is my code...</p>

<pre><code>{% set entries = craft.entries.section('bizlist').limit(10) %}
  {% for entry in entries %}
{{ entry.title }}&lt;br /&gt;
     {% for block in entry.cityList %}
{{ block.bizName }}
     {% endfor %}
  {% endfor %}
</code></pre>

<matrix>
Matrix fields using Categories
# Matrix fields using Categories

(Asked by: username_0 on 2018-04-06)

Trying to template a matrix field that contains the use of categories. I am not a dev but trying to get this working.  This is my attempted but what I get back is something like this instead of the result.

{{%content}}";s:12:"customFields";N;s:9:"inReverse";b:0;s:7:"asArray";b:0;s:2:"id";N;s:3:"uid";N;s:10:"fixedOrder";b:0;s:6:"status";a:1:{i:0;s:7:"enabled";}s:8:"archived";b:0;s:11:"dateCreated";N;s:11:"dateUpdate

Here is my code...
{% set entries = craft.entries.section('bizlist').limit(10) %}
  {% for entry in entries %}
{{ entry.title }}
     {% for block in entry.cityList %}
{{ block.bizName }}
     {% endfor %}
  {% endfor %}

**Tags:** matrix

---

## 1 answers

### Answer by username_1 on 2018-05-08. Score: 2 | Accepted answer

Is bizName your categories field?  Try something like:
{% for category in block.bizName.all() %}
   {{ category.title }}
{% endfor %}

> **Comments:**
> **username_0**: I got this one covered by using .one() also.  

---

