wp query raw sql

Solutions on MaxInterview for wp query raw sql by the best coders in the world

showing results for - "wp query raw sql"
Martina
01 Aug 2016
1global $wpdb;
2$post_id = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE (meta_key = 'mfn-post-link1' AND meta_value = '". $from ."')");