Using wordpress function to retrieve data
By default $wpdb->get_results() returns results in the form of an array of objects. If you want an array of associative arrays instead, just do this: $results = $wpdb->get_results( “…”, ARRAY_A ); Obviously I’m not familiar with your project or the code you’re using, and I haven’t tested this, but you’d probably want to do something … Read more