EE Category Channel Example
Copy this code and paste it in your HTML
{exp:channel
:categories show_empty
="yes" channel
="blog" style
="linear"} <li>{if last_segment == 'fr'}<a href="{path='blog/category'}/fr/">{category_name}</a>{if:else}<a href="{path='blog/category'}">{category_name}</a>{/if}</li>
{/exp:channel
:categories
}
Report this snippet