prova prefix . “customTable”; $data = $wpdb->get_results(“SELECT * FROM $tablename”); foreach ($data as $d) { echo $d . ““;