3
How to make a query in Wordpress in a specific table, being it: wp_dd_spg_galleries
?
I already have the ID of the gallery, I tried to make this query, but does not return anything:
$query = "SELECT * FROM wp_dd_spg_galleries WHERE id = ".$idGaleria;
$idGal = $wpdb->query($wpdb->prepare($query));
I got it, doing like this: $idGal = $wpdb->get_results($query); Being illiterate with Wordpress gives it... rs
– Ewerton Melo
Ewerton, publish your solution as a complete answer, thank you!
– brasofilo