Answers for "wordpress sql get query"

PHP
0

wordpress execute query

global $wpdb;    
$result = $wpdb->get_results( "SELECT * FROM wp_usermeta WHERE meta_key = 'points' AND user_id = '1'");
print_r($result);
Posted by: Guest on April-16-2020
0

wordpress select query

$post_id = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE (meta_key = 'mfn-post-link1' AND meta_value = '". $from ."')");
Posted by: Guest on July-16-2021

Code answers related to "wordpress sql get query"

Browse Popular Code Answers by Language