How to Display Multiple Taxonomies Checkboxes with Custom Press for Custom Post Types

I hope my question title makes sense.

I'm using the vantage theme from appthemes.com and I've used Custom Press to create a custom taxonomy called "neighbourhoods" which you can see here:

http://screencast.com/t/85t58myk0

for the existing post type "listings" however I'm not getting the option to select multiple categories as you can see in this screen shot:

http://screencast.com/t/TEGCHWy2LM8

as I have created different neighbourhood categories as you will see in this screenshot:

http://screencast.com/t/zhIkC5iUXc

Perhaps my understanding of taxonomies is wrong?

Or I have configured something improperly?

If someone could help me out I would greatly appreciate it.

Thanks,

Matt

  • james_harris

    Did this get fixed? I have pretty much the same problem, with the same theme. I have created a custom taxonomy, and have a drop down menu in the front end form, but the data is not sent when the form is submitted....

    I have made 2 custom taxonomies to help to further distinguish business listings 1)location, 2)tribe (nation-confederacy).
    I have registered these taxonomies in my child themes function.php see (a) below.
    I have also included a taxonomy link in my child’s single-listing.php (b) which then displays my custom taxonomies all of which works great. Using wp_dropdown_categories() I have got these Taxonomies to display in form-listings.php (c) so they appear in the create a listing form.

    My problem is, is that when the form is submitted, the selections for my custom taxonomies are NOT submitted and I’m not sure how to fix this. I have tried wp_set_object_terms() in listings-form.php, but still have not been able to get it to work….

    The reason I am not using the custom forms for this part is because I have also got a multiple custom taxonomy selecting plugin (http://codecanyon.net/item/taxonomie..._author=waylay) on the homepage, using drop down menus to be able to be VERY specific about what business listings are displayed…. It is a bit tidier that just the search bar. I just can’t get the front end users selection of their custom tax to be submitted to the database with the form….. Any help would be appreciated!

    (A) = register my taxonomies in function.php:

    // Add custom taxonomies
    add_action( 'init', 'business_listings_create_taxonomies', 0 );
    
    function business_listings_create_taxonomies()
    {
    // Business Location
    $country_lables = array(
    'name' => _x( 'Business location', 'taxonomy general name' ),
    'singular_name' => _x( 'Business location', 'taxonomy singular name' ),
    'search_items' => __( 'Search via business location' ),
    'all_items' => __( 'All business locations' ),
    'most_used_items' => null,
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => __( 'Edit business locations' ),
    'update_item' => __( 'Update business locations' ),
    'add_new_item' => __( 'Add new business location' ),
    'new_item_name' => __( 'New business location' ),
    'not_found' => __('No business locations found'),
    'not_found_in_trash' => __('No business locations found in trash'),
    'menu_name' => __( 'Business Locations' ),
    );
    register_taxonomy('businesslocation',array('listin g'),array(
    'hierarchical' => true,
    'labels' => $country_lables,
    'show_ui' => true,
    'query_var' => true,
    'rewrite' => array('slug' => 'business_location' )
    
    ));
    
    // Nation-Confederacy
    $nation_confederacy_lables = array(
    'name' => _x( 'Nation-Confederacy', 'taxonomy general name' ),
    'singular_name' => _x( 'Nation-Confederacy', 'taxonomy singular name' ),
    'search_items' => __( 'Search by Nation-Confederacy' ),
    'all_items' => __( 'All Nation-Confederacies' ),
    'most_used_items' => null,
    'parent_item' => null,
    'parent_item_colon' => null,
    'edit_item' => __( 'Edit Nation-Confederacy' ),
    'update_item' => __( 'Update Nation-Confederacy' ),
    'add_new_item' => __( 'Add new Nation-Confederacy' ),
    'new_item_name' => __( 'New Nation-Confederacy' ),
    'menu_name' => __( 'Nation-Confederacy' ),
    );
    register_taxonomy('nation_confederacy',array('list ing'),array(
    'hierarchical' => true,
    'public' => true,
    'show_in_nav_menus' => true,
    'labels' => $nation_confederacy_lables,
    'show_ui' => true,
    'query_var' => true,
    'rewrite' => array( 'slug' => $va_options->listing_permalink . '/' . $va_options->listing_cat_permalink, 'with_front' => false ),
    //'rewrite' => array('slug' => 'national_confederacy' )
    ));
    
    } // end of business_listings_create_taxonomies function

    ?

    (b) display with links, my custom taxonomies in single-listings.php:

    if (get_the_term_list( $post->ID, 'businesslocation' ) != null ) { ?>
    <div class="listing_tax_cat_label">Business Location: <?php echo get_the_term_list( $post->ID, 'businesslocation', '', ', ', '' ); ?></div>
    <?php } ?>

    <?php if (get_the_term_list( $post->ID, 'nation_confederacy' ) != null ) { ?>
    <div class="listing_tax_cat_label">National Confederacy: <?php echo get_the_term_list( $post->ID, 'nation_confederacy', '', ', ', '' ); ?></div>
    <?php } ?>
    ?

    (C) show drop down menu in front end form - however this is not submitted with the form for some reason!!!
    <div class="form-field"><label>
    <?php _e( 'Your Business Location:', APP_TD ); ?>
    <?php wp_dropdown_categories( array(
    'taxonomy' =>businesslocation,
    'hide_empty' => false,
    'hierarchical' => true,
    'name' => 'businesslocation_name',
    'id' => 'businesslocation',
    'selected' => $listing->businesslocation,
    'show_option_none' => __( 'Select Business Location:', APP_TD ),
    'class' => 'businesslocation',
    'orderby' => 'name',
    'include' => $listing_cat,
    'hide_if_empty' => false
    ) ); ?>
    </label></div>

    <div class="form-field"><label>
    <?php _e( 'Nation-Confederacy (leave blank if not applicable):', APP_TD ); ?>
    <?php wp_dropdown_categories( array(
    'taxonomy' =>nation_confederacy,
    'hide_empty' => false,
    'hierarchical' => true,
    'name' => '_'.nation_confederacy,
    'selected' => $listing->nation_confederacy,
    'show_option_none' => __( 'Select Your Nation-Confederacy:', APP_TD ),
    'class' => 'required',
    'orderby' => 'name',
    'include' => $listing_cat,
    'hide_if_empty' => false
    ) ); ?>
    </label></div>

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.