Viewing 1 replies (of 1 total)
  • Plugin Author Jamie

    (@themissingcode)

    you will need to reference the global $wpdb before running your code.

    global $wpdb;
    $result = $wpdb->get_results($query)

    if you have not included the global reference, the $wpdb var will not be set to an instance of the db class.

Viewing 1 replies (of 1 total)
  • The topic ‘Error with $wpdb->get_results’ is closed to new replies.