TestDB

global $wpdb;
get_var(“SELECT ID FROM wp_posts WHERE post_name = ‘hola-mundo'”);
echo $helloworld_id;
?>