除非将字符串标题切成“ Gocomma 10W QI无线快速充电器车载支架”,否则我什么都不会得到。
$title1="Gocomma 10W QI Wireless Fast Charger Car Mount Holder - 2pcs (it)";
$sql = $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_title LIKE '%%%s%%' and post_status='publish'",$title1);
$post_if = $wpdb->get_results($sql);
任何帮助表示赞赏!