Taxonomy problem (need help)

Discussion in 'WordPress' started by xceedbd, Apr 3, 2013.

  1. #1
    I have 2 taxonomy
    1. Product Cat
    2. Product Brand
    i need to show product brand template all product brand selected product cat.
    Example:
    Product Cat
    1.Main Engine
    2.Air Compressor

    Product Brand
    1.B&W
    2.BERGEN
    3.CATERPILER

    Main Engine>B&W
    Air Compressor>CATERPILER
    When i click Main Engine only Product Brand Taxonomy template show B&W. (Note: template already show)
    so how can i fix the problem.
     
    xceedbd, Apr 3, 2013 IP
  2. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    195
    #2
    LGRComp, Apr 8, 2013 IP
  3. xceedbd

    xceedbd Well-Known Member

    Messages:
    640
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #3
    Thanks for help @LGRComp. But i want query code.
     
    xceedbd, Apr 9, 2013 IP
  4. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    195
    #4
    Well perhaps if you posted the query code you are using now someone/I can help.
     
    LGRComp, Apr 9, 2013 IP
  5. xceedbd

    xceedbd Well-Known Member

    Messages:
    640
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    128
    Digital Goods:
    1
    #5
    I have 2 taxonomy. 1. product_category, and 2. product_brand

    Template Name:
    1. taxonomy-product_category.php
    2. taxonomy-product_brand.php

    taxonomy-product_category.php template show all product category.

    and taxonomy-product_brand.php show only brand name , when i click/selected from category(taxonomy-product_category.php).

    i mean brand name show selected category if have brand name other wise show nothing.

    Note: its show brand name (taxonomy) not post.

    i use code:


    $args = array('taxonomy' => 'product_brand', 'orderby' => 'name', 'order' => 'ASC', 'show_count' => 1, 'pad_counts' => 0,'hierarchical' => 1,'title_li' => '');
    wp_list_categories( $args );


    i know its not correct, because this code show all brand name.
     
    xceedbd, Apr 9, 2013 IP