Yes you can. Straight from the codex
The $wpdb object is not limited to the default tables created by WordPress; it can be used to read data from any table in the WordPress database (such as custom plugin tables). For example to SELECT some information from a custom table called “mytable”, you can do the following.
$myrows = $wpdb->get_results( "SELECT id, name FROM mytable" );
Related Posts:
- What’s the proper way to use a custom table? [closed]
- $wpdb->replace: WHERE?
- What is my error trying to create a new table in the database?
- How to have differents sites share the same tables of DB?
- How to delete all records from or empty a custom database table?
- WordPress Paginate $wpdb->get_results
- Backup the Database and Restore from the Backup?
- Why does $wpdb return strings for mysql integer values?
- What Is The Difference Between suppress_errors() And hide_errors() in $wpdb?
- Prevent WordPress from loading comments
- Suggestions for WPMU Migration (advanced)
- Retrieve and display data from custom db table in admin area?
- How to find if a post with custom_field == X exists?
- Custom search page and search by title, content and tag
- How to retrieve the value stored in a multi-dimensional array and SUM the entries?
- Why would switch_to_blog stop working?
- Adding a Table to the wordpress database
- Creating user relationships
- WP Northwind for Theme Development?
- database interactions using OOP
- Fastest way to get the comment and ping total count for a post
- $wpdb->insert running multiple times?
- wpdb custom tables without plugin
- How to use default WP form elements to interact with custom DB table?
- Your thoughts on the interaction with one custom database table from WP?
- Applying WP-cli Search & Replace to Static SQL Dump File
- Setup database structure with books, authors, languages etc. for publishing house [closed]
- Add table to WordPress database
- Custom select query two tables by a meta key
- Custom Database Table and foreach
- optimal taxonomy or custom post types
- Migrating my site to a new domain does not keep any changes made in customizer
- New Page/Post Screen Opens an Existing Post
- Advice on how to structure a custom plugin
- Custom Form Input not saving to Database
- Accountless password generation
- Add several fields from different tables to post, fields per post are in same row of table
- Where should I put this custom data?
- Show WP content on different PHP Sites
- Database custom table issues – incorrect result displayed
- Changing starting number of User ID
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Accessing + retrieving custom database in WordPress
- pull custom fields values from wp-database in a nested foreach loop
- Advice how to connect custom database with WordPress, change data in WordPress and finaly use this data
- Changes to code not displaying
- Echo the Last Child Taxonomy only (not parents)?
- Display Images with More Fields yes / no
- Custom Taxonomy Sort For a Custom Query
- How to query term_id of a Custom Taxonomy by name
- Where to upload my new custom ShortCode in Separate .php file?
- How to Clear Empty Search values?
- Translate custom template with WPML
- Allow a subscriber to be an author and view only his post
- Importing specified data/field
- Missing current_page_item in custom menu
- Attach File Funcion for Common people
- What are some good resources for teaching end-users how to use WordPress?
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- How To make Custom page of every Category
- How do I change my permalink structure to a custom structure on an established blog?
- Custom Register Link on Backend Form
- List of contents of entire blog
- Replace TimThumb in existing WordPress Themes
- Moved wp-content and got problem with themes directory?
- Overstand theme set up issue
- Problem with custom function from jQuery slider tutorial
- Remove Sidebars from page
- accessing monthly archive from dashboard
- Customizing the gallery of the post correctly
- How to use multiple check-box values to work in a function and insert values in database
- Exclude current post but keep the same posts-per_page amount
- How Can I Always Display A Particular Post First Using WP_Query?
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- Display a specified content on a Page and all its child pages
- Help on conditional statement to accompany wp_insert_post function please?
- Create new network instance, import old single installs AND keep the urls?
- title tag function
- How to do multi site setup
- WordPress 3.1 update has reversed my blog posts
- WordPress Command Question
- getting a 404 page for all pages except home. possibly permalinks
- Different profile page by role
- kitchen sink not working
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- Troubles about insering a POST with a SQL query, post_status
- Any Good WordPress Client Like Live Writer To Create Static Pages
- WordPress homepage hangs in IE browsers
- WordPress pagination with custom post type?
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- 2.9 to 3.0: Pros and cons of upgrading?
- How do I create a Custom Post Box that Connects Different Posts Together
- How to replace blog page url with subdomain at all places, even in xml sitemap?
- Pull Latest Forum Posts within WordPress
- How to setup a membership system in WordPress?
- Where’s did this div element come from?
- query_posts meta_key with current date
- How to activate flash cards
- Add array of post id’s to a category?
- Transferring theme and imported post attachments