存取WordPress Database
In this article, Daniel Pataki will explain how to get started with the $wpdb class, how to retrieve data from your WordPress database and how to run more advanced queries which are tailored to your particular needs, in order to update or delete something in the database, and generally make your website more efficient.內容出處: How To Interact With The WordPress Database — Smashing Magazine