rubengc / cmb2-field-ajax-search

CMB2 field type to attach posts, users or terms.
33 stars 24 forks source link

Search ajax term not registering in the actual taxonomy #5

Open elisafern12 opened 6 years ago

elisafern12 commented 6 years ago

Hello! I have an issues and not sure if it's me:

I have a custom post type name Artworks, and a custom taxonomy named Artists. I have successfully plugged the ajax search term field and everything is working great at this point.

However, I see that when choosing an artist via the ajax field, it is not registering to the Artists taxonomy - i.e, when I go to the taxonomy term, I see that the artwork is not attached to the artists.

``

$artwork_details->add_field( array(
    'name'          => __( 'Artist', '' ),
    'desc'          => 'Start typing a name (You must add the Artist in the Artist section FIRST.)',
    'id'            => 'auction_taxonomy_select',
    'type'          => 'term_ajax_search',
    'multiple'      => false,
    'limit'         => -1,
    'query_args'    => array(
        'taxonomy'      => 'artists_tax',
        'hide_empty'        => false
    )

) );

``

On the Artwork page, I also see a sidebar taxonomy menu that allows to have multiple choices, is there a way to disable this?

Thanks a lot for this!

elisafern12 commented 6 years ago

Updated the post above.

investreads commented 6 years ago

(I think) I'm seeing the same issue as @elisafern12 . It is not pulling data for a taxonomy multiselect.