WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using this code for a dropdown of categories. On selection of the dropdown the desired category is displayed using the archive template. I cannot for the love of me get the template hierarchy to work.

<select name="tag-dropdown" onchange="document.location.href=this.options[this.selectedIndex].value;">
<option value='#'>Select Taxonomy terms</option>
<?php $taxonomies = array('service-category');
$args = array('orderby'=>'name','hide_empty'=>true);
echo get_terms_dropdown($taxonomies, $args); ?>

I am using a custom post type called 'services' and a custom taxonomy 'service-category'. Is there a way to tell the search to use a different archive.php template?

share|improve this question
up vote 0 down vote accepted

From codex - you should be able to use taxonomy-service-category.php template to display service-category posts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.