you can check on your taxonomy-services.php what is the current queried term filter based on that, something like this:
//get the current term
$term_slug = get_query_var( 'term' );
//get the current taxonomy
$taxonomyName = get_query_var( 'taxonomy' );
//get the term object if you want
$current_term = get_term_by( 'slug', $term_slug, $taxonomyName );
//then you can query your posts/custom based on that term
$s_query = NEW WP_Query(array('services' => $term_slug, 'post_type' => 'post'));
//then you can simply filter the posts
if ($current_term->term_slug == "websites"){
while($s_query->have_posts){
$s_query->the_post();
//do websites loop
}
}elseif ($current_term->term_slug == "video"){
while($s_query->have_posts){
$s_query->the_post();
//do videos loop
}
}else{
while($s_query->have_posts){
$s_query->the_post();
//do any other loop of that taxonomy
}
}
Related Posts:
- How do I append multiple taxonomies to the URL?
- Custom Taxonomy with Custom Post Type Finds No Posts
- Get custom post type by category in a page template
- Associating an “author” with a custom taxonomy
- TV Show database – Best way for structuring it?
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Showing current taxonomy terms
- automatically create taxonomy with same name as post title
- Query posts by custom post type and custom taxonomy
- Custom Taxonomy conditionals
- After deleting a post are terms, and custom meta deleted?
- Best practice for adding posts in bulk
- WP 3.1 getting tax_query to work in query_posts()
- Programmatically adding posts
- Keep main articles and author blogs seprerate, News / Magazine like site
- Why is my custom loop not filtering correctly nor paginating?
- Custom post types with custom directories
- removing custom tax & CPT slug, adding taxonomy term in front of custom type
- How to customize admin posts based on the user who is logged in
- Show Two custom Post type and their posts on category page
- How to create an advanced filter search?
- Weird problem happening with custom taxonmy when creating/updating posts
- Conditional Query of Custom Post Type and custom taxonomy
- List custom taxonomy specific to one custom post type
- How do I move/order posts with a tag to the end?
- WordPress sort search results by custom order
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Hide parent categories when clicked, and show it’s childs
- How to start a new post with custom Taxonomies already set?
- How to add attributes to taxonomies that may be different from post to post?
- Migrating a taxonomy’s tags to the native category
- How to produce a sub-page-system in WordPress
- custom post type vs. conditionally displaying meta boxes for specific terms?
- List Categories (wp_terms) and count posts
- attach CPT data to a taxonomy
- Creating a non-hierarchical Taxonomy that behaves like categories
- Display Custom Post Types Glossary
- How should I structure complex content hierarchies?
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Get terms for a specfic post from multiple taxonomies in custom post type
- How to list posts by term (custom taxonomy)
- Query Multiple Custom Post Types & Exclude a Taxonomy Term
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Custom taxonomy not saving correctly
- Related “custom post type” using “custom taxonomy”
- How do I ensure that post_type and Taxonomy use the same slug?
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Set a Default CPT taxonomy by taxonomy id
- Building Link List for Custom Tax
- CPT: multiple loops with different terms
- Help with Travel Guide Setup
- WordPress query posts by custom post type not workng
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- WP_Query for CPT with filter by another WP_Query
- Sort by Custom Post Type (Multiple Loop)
- Get link for feed of specific post type AND taxonomy
- Inserting two categories
- Advise on Custom Taxonomies and Structure
- cannot export data from CPT UI (books)
- Same slug for Custom Taxonomy archive and CPT archive – Rewrite rule not working
- How to develop Knowledge center in WordPress Website
- Mixing custom post type and taxonomy rewrite structures?
- Can multiple custom post types share a custom taxonomy?
- How to Add Custom Fields to a Custom Post Type?
- Display current taxonomy term when inside custom post type
- limit selection of custom taxonomies to one?
- $wp_query->queried_object->ID throws warning: Undefined property
- Archive or taxonomy pages not working for custom post type
- Custom Taxonomy returns no posts
- How to delete all posts from a custom post type?
- Custom post types and permalinks
- Fetch taxonomies by custom post type id array
- Normal pages as children of my Custom Post Type
- How can I auto-assign a CPT post to category in a custom taxonomy when published?
- Mapping Subdomains in WordPress to give the appearance of a localised site, best approach?
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Post count by month of taxonmy term
- Pretty URL for custom search for custom post type
- First custom field value (out of several) displayed twice after query
- Custom while loop for hierarchical display of a taxonomy
- Adding the_content() in custom template email
- Grouping of CPTs and taxonomies into menu groups in admin
- WP_query – Filter by tax_query and meta_query using multiple select
- Hide meta box for everything BUT a certain custom post type
- Only show posts with a specific term of an associated taxonomy in a custom post type archive
- Display custom tags for custom post listing page
- Confusion about how to use Custom Post Types, Custom Taxonomy or Category?
- Displaying Posts Using a Custom Query with a Custom Field and a term_id
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- Adding category base to url in custom post giving 404?
- Get taxonomy name used in a current post
- Custom Taxonomy Archive generates 404
- Support for author does not show author column in post table in dashboard
- Custom Pagination based on Custom Post Type
- WordPress custom post type
- Show Custom Post Type taxonomy term that matches custom field
- How to Display Custom Taxonomies in an Un-ordered HTML List
- how do I create a breadcrumb to work with multiple custom taxonomies