you can add the current term to you query so if its category, tag or custom taxonomy you will get the posts with the current term, try changing this:
query_posts('cat=0&posts_per_page=12&paged='.$paged);
with this:
$term_slug = get_query_var( 'term' );
$taxonomyName = get_query_var( 'taxonomy' );
query_posts(array('posts_per_page' => 12, 'paged' => $paged, $taxonomyName => $term_slug));
Related Posts:
- get_the_term_list without links in 3.1
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- wp_insert_term – parent & child problem
- Custom order of terms for custom taxonomy in admin and website
- Check if current term is a child of another term
- How to hide custom taxonomy archives same way as hiding custom post types?
- Custom Fields and performance
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Creating a custom Admin panel
- Page queried instead of a custom taxonomy
- Remove description in custom taxonomy edit screen
- get_the_term_list without specific category
- Using a different template per Custom Taxonomies for single term archive pages
- Extending wordpress search to include excerpts and taxonomies?
- wp_query to display custom taxonomy terms
- How to list all record from one custom taxonomy start with only one letter i.e A
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Display direct children of the current custom taxonomy in taxonomy.php template
- Date archive permalinks for custom taxonomy
- List Recent Post Titles from Custom Taxonomies?
- Taxonomy archive showing no results
- Dynamic loading of Archive content based on custom taxonomy term name
- List taxonomies according to whether this post is in another taxonomy in taxonomy archive
- orderby meta_value breaks taxonomy term archives
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- How to have two different versions of a tag/category/taxonomy archive page?
- Custom Taxonomy Term Caching?
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- How to add Post Format Taxonomy Archive page in the menu?
- How does WordPress Parent-Child Taxonomy actually Works?
- Custom taxonomy archive shows 404 error
- Some of my custom taxonomies are not showing but still counted in a WPMU set up
- add hirarchy of categories in products grid of visual composer
- Custom Taxonomy index/archive hierarchy
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- How to use multiple archive templates for a taxonomy?
- Add success message to category add screen
- wordpress testimonials
- Hiding taxonomies with no children WP_Query & tax_query
- WordPress Custom post query sorting does not work
- Custom taxonomy not appearing in menu administration panel
- Best structure for entering recipes in a WordPress theme?
- how does the wordpress rest API work
- Get Terms for Page
- Add attribute taxonomy through code don’t appear in admin product page
- Best way to redirect taxonomy terms to pages
- Create alphabetical Pagination for custom taxonomy?
- Taxonomy archive template that shows posts from more than one taxonomy
- Custom Taxonomy List with Children
- Taxonomy Overview Page?
- Featured Images for Tags?
- why the archive of custom taxonomy term shows nothing?
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Query Multiple Custom Taxonomies
- Use wp_list_categories to list parent categories from actual term
- Add terms to a taxonomy archive from within the same taxonomy
- Can I overwrite custom taxonomy FROM “public” TO “false”
- Custom Taxonomies Archive Page 404
- How to create archive pages for metadata query generated posts (so without taxonomy)?
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Remove Custom metabox from particular page template is used
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Restrict viewing of posts by category, user role
- Assign a default description to new terms under a custom taxonomy
- How to get a terms and posts associated with another term?
- Change the Page Title of the Archive Page for Portfolio Tags
- Custom taxonomy return 404
- What’s the url queryvar for a taxnomy archive?
- Multi level archive
- Custom Taxonomy Archives Page Errors
- index.php Not Showing Custom Posts / Terms
- Custom Taxonomy Archive Page for Parents AND Children?
- WordPress tag or archive php file customization
- Redirect or Prevent Viewing of Custom Taxonomy’s Archives?
- Best Method to Switch Between Terms (Custom Taxonomy)
- Creating a Taxonomy Page [duplicate]
- WordPress shortcode Issue!
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- Trying to achieve row posts below category with multiple loops in custom tax
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Insert code on specific taxonomy archives
- Permalinks not working on MU network with domain mapping
- Custom Taxonomy Archive URL rewrite
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Custom Taxonomy, shows empty value (home page of website)
- More than one Hierarchical Taxonomy and SEO
- Custom Search only for my Custom Taxonomy Page – data
- Getting Catategory / Taxonomy Description on Non-archive Pages
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Custom taxonomy archive empty
- Why my archive title isn’t showing?
- Creating a custom archive page for WooCommerce products based on tags
- Is there a (relatively easy!) way to create relationships between taxonomies WITHOUT needing a post as an intermediary
- Custom hierarchal taxonomy loses interface hierarchy when selecting parent & children
- Display all posts for taxonomy term across multiple custom post types
- How to join result of different taxonomies?
- Adding content to custom taxonomy category pages
- Display formatted list of taxonomy terms with last seperator different