User $wpdb with a custom database?
Hi, I'm new to working with wordpress, but I hope someone can help me with this problem. I have no problem running this very basic query with my wp_users table: global $wpdb; $user_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT() FROM $wpdb->users" ) ); echo "User count is {$user_count}"; Thi...