To query a second database you can use the wpdb object like explained here.
This can be a local or extern database. You don’t need to create a plugin.
Related Posts:
- Issue running db create table query from static method
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- How to display results from a data table with an encrypted user id?
- plugin doesn’t retrieve data from database
- can not serialize and insert data from custom form
- What are the differences between WPINC and ABSPATH?
- How to Add an Index to Plugin Database table
- Creating two database tables via plugin
- How to properly insert data into custom table via plugin
- Problems with autoloading classes via sp_autoload_register / maybe interfering WP-specific autoloader
- How does WordPress handle MySQL row lock errors?
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Customizing subject in comment notification e-mails
- category_name not working (not showing up in sql query debug)
- Using require_once in a Plugin?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Simple form that saves to database
- How to Loop Plugin Option Field Set?
- Populate select option with JSON file
- WordPress not displaying information on post sent from custom admin form
- My plugin can’t see my files
- how can i get records from wp_postmeta table using particular meta_key in database?
- insert multiple entries in database using a loop issue
- Displaying friend’s posts only
- Theme editor removes backslashes
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Creating a user ‘add custom field’ section
- How can I insert a record into a custom table from my custom form in my custom admin page?
- Autoloading a PHP class – working outside, but not inside WordPress plugin
- How to save information related to post in database?
- Plugin Hook: Get posts
- Saving an array to get_options
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- Plugin Breaking WordPress Login
- How to get site homepage from plugin?
- How to add a handler for a button in plugin?
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- Doing action based on input from options menu
- Create New Admin Menu Section – Like how custom post type works, in a way
- Creating fields in the database
- Undefined variable _POST
- How to submit the custom form data in database in WordPress without plugin?
- Help me with my first very basic plugin
- Load my plugin before cache
- How use Dynamic hyperlink on each wordpress post?
- Unable to show 4 products in a row
- How to fix ‘Call to undefined function do_settings()’ error?
- What is the source outline for a basic word press plugin?
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- Submit posts in two different post types with the same form
- wordpress select multiple options and illegal string offset ‘timeslot’ [closed]
- how to search through plugin in wordpress cimy-user-extra-fields?
- How to create post comparison in wordpress
- What can I do to customize a widget provided with this plugin? from where have I to start?
- get_option returning a different value from what’s saved
- How can I delete the options from DB when the plugin is deleted?
- register_activation_hook not working
- On the same site, how do I send data from a plugin file to a theme file?
- How to add custom html to the Media > Attachment Details modal?
- Displaying Category Feature image on loop
- Function not being called on form submit, only blank admin-post.php page
- wp_handle_upload – specified file failed upload test
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How to override plugin function in code snippets WordPress
- How to make a Template page to show the information of different things Shop and Product page?
- How to create a “Most Popular” & “Latest” TAB in WordPress
- How to trigger plugin migration code when plugin updates?
- How to Save Category and Delete Category in same Function
- WordPress Throwing Deprecated Errors on its own Files
- public custom posts not showing in my wordpress plugin
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class
- Accessing Correct Database to Create REST API Endpoint
- Mixed results with is_page() WordPress function, when using $this, or self
- add_action() not working for admin
- REST API – filters not working inside plugin class
- Read page- or post-content across different builder-plugins
- How to make WordPress Plugin run on single specific Admin Page
- WordPress site server getting blocked due to resource abuse
- Error 400 Invalid “products[1].productId” Kinguin [closed]
- Plugin question, How to insert a colon in a value box
- Woocommerce attatch files and custom input meta to cart items and then to order
- How to add usermeta for existing users when user profile is updated
- wp_head filter not executed inside custom class
- redirect logged users to custom front-end insetad of wp-admin
- How to fetch WordPress Gallery Images to a Custom Post Type?
- Remove custom menu pages for admin users
- Custom uploader – Upload files and save link into database
- Implement Google SSO in custom plugin
- Unable to use correctly composer autoload in plugin file
- I have issue to retrive post thumbnail with rest api
- Custom block based off core block using filter
- Remove H1 title in admin post edit screen
- Custom plug-in issues
- Custom Search Function in WordPress Returns No Results
- Call to undefined function create_function() – PHP 8.2
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
- Custom Dynamic Tag in Elementor not showing image
- How can you call to data in google sheet based on ID number?