rubengc/cmb2-field-ajax-search

Search ajax term not registering in the actual taxonomy

Opened this issue · 2 comments

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!

Updated the post above.

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