Working with Categories

In this video, we will add a category group and categories to our blog, as well as display them in our blog template.

What We Do

Code Snippets

Adding Category Loop To Display Name

{!-- Categories --}
<p class="text-sm leading-5 font-medium text-indigo-600">
   {if has_categories}
      {categories backspace="2"}<a class="hover:underline" href="/blog/entry/{url_title}">{category_name}</a>, {/categories}
{!-- End categories --}


Discussion and Questions

Doug Black's avatar
Doug Black

Doug is the developer and founder at tripleNERDscore. He is also core contributor to, ExpressionEngine!

Comments 0

Be the first to comment!