Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

<form>
<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); ?>
</select>
</form>

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.