Taxonomy Terms Archive

I want to create a page that has all the terms in a custom taxonomy displayed like in an archive page. Which template should I use as my base?

I am using the following code as of now:

<?php $wcatTerms = get_terms('sermon_series', array('hide_empty' => 0, 'parent' =>0)); foreach($wcatTerms as $wcatTerm) : ?>
		<ul>
		   <li>
			  <a href="<?php echo get_term_link( $wcatTerm->slug, $wcatTerm->taxonomy ); ?>"><?php echo $wcatTerm->name; ?></a>
			  <ul class="megaSubCat">
				 <?php
					$wsubargs = array(
					   'hierarchical' => 1,
					   'show_option_none' => '',
					   'hide_empty' => 0,
					   'parent' => $wcatTerm->term_id,
					   'taxonomy' => 'sermon_series'
					);
					$wsubcats = get_categories($wsubargs);
					foreach ($wsubcats as $wsc):
					?>
				 <li><a href="<?php echo get_term_link( $wsc->slug, $wsc->taxonomy );?>"><?php echo $wsc->name;?></a></li>
				 <?php
					endforeach;
					?>  
			  </ul>
		   </li>
		</ul>
		<?php 
			endforeach; 
	   ?>

Hi,

You can use wp-content/themes/x/framework/views/integrity/wp-index.php and wp-content/themes/x-child/framework/views/global/_index.php as base.

For more information kinldy refer to the links below

https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.