Display Subcategories on Category Pages

I am adding the following code to my archive.php file…



if (is_category()) {

$this_category = get_category($cat);





$this_category = wp_list_categories(‘orderby=id&show_count=0


“&echo=0”:wink:; else

$this_category = wp_list_categories(‘orderby=id&depth=1&show_count=0



if ($this_category) { ?>

    <?php echo $this_category; ?>

<?php } ?>


It works great, but I want it to only display when a particular category is being viewed. Can you help me?


Or, if you have a better suggestion for displaying sub-categories on a category page, I am open to it?

Or, is this better done now-a-days with a shortcode? If so, what plugin do you recommend?