CMB2-Post-Search-field
CMB2-Post-Search-field copied to clipboard
ajax response returns undefined
I have the latest CMB2 beta build installed through wordpress plugin directory. I uploaded your plugin through SFTP and network activated. I added your input type to my test file. The input shows up fine. I get an error when trying to search. Line 143 throws console error saying response.data is undefined. response var outputs -1
Code screenshot http://screencast.com/t/9gSp0wljwMm Replicate: http://screencast.com/t/5eCp9ZsB
I am getting the exact same error and my steps are just like pidgypost's.
My code is like this:
$custom_page->add_field( array( 'name' => __( 'Find an article', 'cmb2' ), 'id' => $prefix . '_articles', 'type' => 'post_search_text', 'show_option_none' => false ) );
I am thinking there should be some options passed, but I am not sure in what format.