<p>If I'm following you correctly, it should be as simple as this:</p>

<pre><code>&lt;span class="catNoticia"&gt;
    {% if blog.myCategoryFieldHandle|length %}
        &lt;ul&gt;
            {% for category in blog.myCategoryFieldHandle %}
                &lt;li&gt;{{ category.title }}
            {% endfor %}
        &lt;/ul&gt;
    {% endif %}
&lt;/span&gt;
</code></pre>

CC BY-SA 3.0
2015-07-25T22:06:58.327Z
2015-07-25T22:06:58.327Z
Brad Bell
<p>I have a simple and maybe a stupid question, it´s my first Craft Website...</p>

<p>I´m listing  a news section, the news can be categorized ( max two categories ), and i don´t know how to show the category name in the news list items, the category field name is "<strong>categoriaNot</strong>"</p>

<pre><code>{% for blog in craft.entries.section('noticias').limit(10) %}

    &lt;!--inicia noticia--&gt;
    &lt;div class="item noticiaItem"&gt;
        &lt;div class="noticiaImg"&gt;
            {% set imagen = blog.imagenNot.first() %}

            {% if imagen %}
                &lt;a href="{{ blog.url }}" title="{{ blog.title }}"&gt;&lt;img src="{{ imagen.getUrl('thumb') }}"  alt="" class="img-responsive"/&gt;&lt;/a&gt;
            {% endif %} 
        &lt;/div&gt; 
        &lt;div class="noticiaTxtWrap"&gt;
            &lt;span class="catNoticia"&gt;
                **** CATEGORY NAME HERE ****
            &lt;/span&gt;

            &lt;a class="tituloNoticia" href="{{ blog.url }}"&gt; {{ blog.title }}&lt;/a&gt;

            &lt;span class="dateNoticia"&gt;&lt;i class="fa fa-calendar"&gt;&lt;/i&gt; Publicado el: {{ blog.postDate.format('d.m.Y') }}&lt;/span&gt;

            &lt;span class="resumenNoticia"&gt;
                {{ blog.resumenNot }}
            &lt;/span&gt;
        &lt;/div&gt;
    &lt;/div&gt;

    &lt;!--finaliza noticia--&gt;

{% endfor %}
</code></pre>

<p>Any help will be welcome!</p>

<p>thanks!</p>

<p>Sebastián.</p>

<templating><categories>
Show the entry category, that´s it
# Show the entry category, that´s it

(Asked by: username_0 on 2015-07-25)

I have a simple and maybe a stupid question, it´s my first Craft Website...
I´m listing  a news section, the news can be categorized ( max two categories ), and i don´t know how to show the category name in the news list items, the category field name is "categoriaNot"
{% for blog in craft.entries.section('noticias').limit(10) %}

    
    
        
            {% set imagen = blog.imagenNot.first() %}

            {% if imagen %}
                
            {% endif %} 
         
        
            
                **** CATEGORY NAME HERE ****
            

             {{ blog.title }}

             Publicado el: {{ blog.postDate.format('d.m.Y') }}

            
                {{ blog.resumenNot }}
            
        
    

    

{% endfor %}

Any help will be welcome!
thanks!
username_0.

**Tags:** templating, categories


---

## 1 answers

### Answer by username_1 on 2015-07-25. Score: 2 | Accepted answer

If I'm following you correctly, it should be as simple as this:

    {% if blog.myCategoryFieldHandle|length %}
        
            {% for category in blog.myCategoryFieldHandle %}
                {{ category.title }}
            {% endfor %}
        
    {% endif %}


---

