I am working on a project that has
- a custom post type called 'Experience Statement'
- Custom Taxonomy attached to that post type called 'Expertise'
- 6 different terms for the custom taxonomy: Coastal, inland, marine, waterway, ship, telecommunications
So, I have created this loop, that works great and I have created 6 different template pages with this loop in each (I just change the term for each)
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("post_type=experiencestatements&expertise=coastal&showposts=10&paged=$page"); if ( have_posts() ) : while ( have_posts() ) : the_post() ?>
So, this is working fine, but I have to create a different template page: i.e. page-exp-stmt-coastal.php for each term. I would like to have only one template page with conditional statements for each term instead of 6 (and counting) template pages. Having 6+ different pages means I have to go in and change each one every time the client wants a tweak.
In summary, I need some help crafting a conditional tag that changes the loop depending on the taxonomy term. AND, I have no idea how to do that. Any help is greatly appreciated.