Answers.Body: <p>You're very close. Change "set tag" to "set tags" so you have:</p>
  
  <pre><code>{% set tags = entry.projektart %}
  </code></pre>
  
  <p>And then loop through the tags:</p>
  
  <pre><code>{% for tag in tags %}
      {{ tag }}
  {% else %}
      No tags found
  {% endfor %}
  </code></pre>
  
  <p>You could also simplify this and instead of setting the "tags" variable you could write the following:</p>
  
  <pre><code>{% for tag in entry.projektart %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-07T15:04:36.220Z
Answers.LastActivityDate: 2014-08-07T15:40:47.147Z
Answers.LastEditDate: 2014-08-07T15:40:47.147Z
Answers.UserDisplayName: Tyler Willingham
Body: <p>I have one tag for each entry.</p>
  
  <pre><code> - Entry1
       Tag1
   - Entry2
       Tag2
  </code></pre>
  
  <p>Now I want to show them in the title of each entry. But it doesn't work.</p>
  
  <pre><code>{% for entry in craft.entries.section('mainEntry').limit(4) %}
  {% set tag = entry.mainEntryTag.first() %}
    &lt;h2&gt;{{ tag }} {{ entry.title }}&lt;/h2&gt;
  {% endfor %}
  </code></pre>
  
  <p>This results in displaying only the globally first tag:</p>
  
  <pre><code>- Entry1
       Tag1
  - Entry2
       Tag1
  </code></pre>
  
  <p>If I just write: <code>{% set tag = entry.projektart %}</code> I get the error: <code>Object of class Craft\ElementCriteriaModel could not be converted to string</code></p>
  
  <p>How can I get to current entry tag? </p>
  
Tags: <tags>
Title: Show tags for each entry
ThreadText: # Show tags for each entry
  
  (Asked by: username_0 on 2014-08-07)
  
  I have one tag for each entry.
  
  ```
   - Entry1
       Tag1
   - Entry2
       Tag2
  
  ```
  
  Now I want to show them in the title of each entry. But it doesn't work.
  
  ```
  {% for entry in craft.entries.section('mainEntry').limit(4) %}
  {% set tag = entry.mainEntryTag.first() %}
    <h2>{{ tag }} {{ entry.title }}</h2>
  {% endfor %}
  
  ```
  
  This results in displaying only the globally first tag:
  
  ```
  - Entry1
       Tag1
  - Entry2
       Tag1
  
  ```
  
  If I just write: `{% set tag = entry.projektart %}` I get the error: `Object of class Craft\ElementCriteriaModel could not be converted to string`
  
  How can I get to current entry tag?
  
  **Tags:** tags
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-08-07. Score: 4 | Accepted answer
  
  You're very close. Change "set tag" to "set tags" so you have:
  
  ```
  {% set tags = entry.projektart %}
  
  ```
  
  And then loop through the tags:
  
  ```
  {% for tag in tags %}
      {{ tag }}
  {% else %}
      No tags found
  {% endfor %}
  
  ```
  
  You could also simplify this and instead of setting the "tags" variable you could write the following:
  
  ```
  {% for tag in entry.projektart %}
  
  ```
  
  
  ---
  
  