Using different templates for different categories
-
Hello
My categories currently show up in columns but my client would like one category to be displayed differently.
Currently the code is:
<?php $category_description = category_description(); if ( ! empty( $category_description ) ) echo '<div class="archive-meta">' . $category_description . '</div>'; /* Run the loop for the category page to output the posts. * If you want to overload this in a child theme then include a file * called loop-category.php and that will be used instead. */ get_template_part( 'loop', 'columns' );?>
Can I change this so that it will use a different template for one (potentially two) different categories?
Many thanks
Alice
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using different templates for different categories’ is closed to new replies.