Who can explain me the differences between wpdb->get_results()
and wpdb->query()
in making generic queries to wordpress db?

2 s
The difference, if you want to call it that, is that the query()
is the most generalized method to do queries with $wpdb
, the get_results()
method on the other hand is a specific method, which does make use of the query()
method to retrieve the specific results of this method and then does some work on the output.