Answers.Body: <p>You can fetch your categories on the front end using <a href="http://buildwithcraft.com/docs/templating/craft.categories">craft.categories</a>, which has a <a href="http://buildwithcraft.com/docs/templating/craft.categories#group">group param</a> that can be used to filter categories by a given group handle.</p>
  
  <pre><code>{% set categories = craft.categories.group('myGroupHandle') %}
  </code></pre>
  
  <p>If the category group is limited to a single level, you can loop through those using a basic <a href="http://twig.sensiolabs.org/doc/tags/for.html">for-loop</a>:</p>
  
  <pre><code>&lt;ul&gt;
      {% for category in categories %}
          &lt;li&gt;{{ category.title }}&lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  </code></pre>
  
  <p>If the category group can be multi-level, you might be better off using the <a href="http://buildwithcraft.com/docs/templating/tags#nav">{% nav %} tag</a> instead:</p>
  
  <pre><code>&lt;ul&gt;
      {% nav category in categories %}
          &lt;li&gt;
              {{ category.title }}
  
              {# Output a nested &lt;ul&gt; if this category has any children #}
              {% ifchildren %}
                  &lt;ul&gt;{% children %}&lt;/ul&gt;
              {% endifchildren %}
          &lt;/li&gt;
      {% endnav %}
  &lt;/ul&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-20T18:00:14.543Z
Answers.Text: Set up on craft is through the settings, then category button. Not through category tab.
Answers.UserDisplayName: Matteo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-12T00:45:55.630Z
Answers.LastActivityDate: 2014-06-12T00:45:55.630Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>I would like to output a list of all the categories in a category group on the front end. How do I do that?</p>
  
Tags: <categories><templating>
Title: How do you list categories in a category group?
ThreadText: # How do you list categories in a category group?
  
  (Asked by: username_0 on 2014-06-12)
  
  I would like to output a list of all the categories in a category group on the front end. How do I do that?
  
  **Tags:** categories, templating
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-06-12. Score: 27 | Accepted answer
  
  You can fetch your categories on the front end using [craft.categories](http://buildwithcraft.com/docs/templating/craft.categories), which has a [group param](http://buildwithcraft.com/docs/templating/craft.categories#group) that can be used to filter categories by a given group handle.
  
  ```
  {% set categories = craft.categories.group('myGroupHandle') %}
  
  ```
  
  If the category group is limited to a single level, you can loop through those using a basic [for-loop](http://twig.sensiolabs.org/doc/tags/for.html):
  
  ```
  <ul>
      {% for category in categories %}
          <li>{{ category.title }}</li>
      {% endfor %}
  </ul>
  
  ```
  
  If the category group can be multi-level, you might be better off using the [{% nav %} tag](http://buildwithcraft.com/docs/templating/tags#nav) instead:
  
  ```
  <ul>
      {% nav category in categories %}
          <li>
              {{ category.title }}
  
              {# Output a nested <ul> if this category has any children #}
              {% ifchildren %}
                  <ul>{% children %}</ul>
              {% endifchildren %}
          </li>
      {% endnav %}
  </ul>
  
  ```
  
  > **Comments:**
  > **username_2**: Set up on craft is through the settings, then category button. Not through category tab.  
  
  ---
  
  