• Hi,

    I’m using a Frontend plugin that shows categories in a div like this:

    <div id="lvl0">
                                            <?php
                                            $exclude = wpuf_get_option( 'exclude_cats' );
                                            $cat_type = wpuf_get_option( 'cat_type' );
    
                                            if ( $cat_type == 'normal' ) {
                                                wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&exclude=' . $exclude );
                                            } else if ( $cat_type == 'ajax' ) {
                                                wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=' . $exclude );
                                            } else {
                                                wpuf_category_checklist();
                                            }
                                            ?>
                                        </div>

    I need to replace the content of that div for a list of terms from my custom taxonomy “pa_attribute” (Woocommerce). I can’t find the fuction that calls this attribute. I’ve been checking this out, but can’t get to a solution.

    Any ideas?

Viewing 1 replies (of 1 total)
  • I am not sure if you resolved this or not yet.

    but for now you can define the taxonomy array as below

    <?php $args = array(
    ‘show_option_all’ => ”,
    ‘show_option_none’ => ”,
    ‘orderby’ => ‘ID’,
    ‘order’ => ‘ASC’,
    ‘show_count’ => 0,
    ‘hide_empty’ => 1,
    ‘child_of’ => 0,
    ‘exclude’ => ”,
    ‘echo’ => 1,
    ‘selected’ => 0,
    ‘hierarchical’ => 0,
    ‘name’ => ‘cat’,
    ‘id’ => ”,
    ‘class’ => ‘postform’,
    ‘depth’ => 0,
    ‘tab_index’ => 0,
    ‘taxonomy’ => ‘category’,
    ‘hide_if_empty’ => false
    ); ?>

    and then call <?php wp_dropdown_categories( $args ); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘How to show custom taxonomie instad of category on this?’ is closed to new replies.