Guides
Tutorials
Pop Tags

Categories

<pop:categories> work like the other collection tags. Within the scope of a section it pulls the categories of the current section. Within the scope of an entry, it pulls the categories associated with the entry itself. This example pulls categories of the current section:

<ul>
  <pop:categories>
    <li><a href="<pop:permalink/>"><pop:title/></a></li>
  </pop:categories>
</ul>

Here we render a collection of entries and list the categories associated with each one:

<pop:entries>
  <h1><pop:title/></h1>
  <pop:categories>
    <a href="<pop:permalink/>"><pop:title/></a>
  </pop:categories>
</pop:entries>
Continue to Includes & Layouts »