I’ve always been using special category only templates to display category content but I’m working on switching over to having category only content (category names & descriptions) show on the templates index which includes all weblog entries.
So far I’ve come up with:
{if segment_2 != ""}{categories}<h1>{category_name}</h1>{/categories}{/if}It works but I’m not sure if using segments is going to lead to problems later on. Is this a good way to do it or are there better methods to target categories alone? Thanks in advance. 😊