Less More -
Posts: 4306
-
Thank you received: 0
-
-
-
Less More -
Posts: 4306
-
Thank you received: 0
-
-
-
2 months 3 weeks ago #3898 by Elias Katsaniotis,MSc
$wpdb is a PHP global variable that holds the WordPress database object, which is actually an instantiation of the wpdb class. WP_Query actually uses wpdb to query the database. Use WP_Query when you manipulate native WordPress tables (the vast majority of common tasks). Use $wpdb when you manipulate custom tables
- Q&A
- Index
- WordPress
- What is the difference between Wpdb and WP_Query?
Time to create page: 0.086 seconds