📜  wp_query 原始 sql 代码示例

📅  最后修改于: 2022-03-11 15:04:52.987000             🧑  作者: Mango

代码示例1
global $wpdb;
$post_id = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE (meta_key = 'mfn-post-link1' AND meta_value = '". $from ."')");