| @@ -11,9 +11,9 @@ | ||
| 11 | 11 | |
| 12 | 12 | global $wpdb; |
| 13 | 13 | $buttonName = 'xyz_ihs_snippet_selector'; |
| 14 | 14 | |
| 15 | -$xyz_snippets_arr=$wpdb->get_results($wpdb->prepare( "SELECT id,title FROM ".$wpdb->prefix."xyz_ihs_short_code WHERE status=%d ORDER BY id DESC",1),ARRAY_A ); | |
| 15 | +$xyz_snippets_arr=$wpdb->get_results($wpdb->prepare( "SELECT id,title FROM ".$wpdb->prefix."xyz_ihs_short_code WHERE status=%d and insertionMethod=%d ORDER BY id DESC",1,2),ARRAY_A ); | |
| 16 | 16 | // print_r($xyz_snippets_arr); |
| 17 | 17 | if(empty($xyz_snippets_arr))//if(count($xyz_snippets_arr)==0) |
| 18 | 18 | die; |
| 19 | 19 | |