Title: External Database
Last modified: January 27, 2020

---

# External Database

 *  [iozcelik](https://wordpress.org/support/users/iozcelik/)
 * (@iozcelik)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/)
 * How do I use external database and create my own shortcode via shortcoder?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12368738)
 * By external database, could you please give more details ?
 * If you have the shortcodes in CSV format, then there are certain other plugins
   which can import shortcodes/posts from CSV file. Please follow this doc for the
   same – [https://www.aakashweb.com/docs/shortcoder-doc/import-export/#import-other-sources](https://www.aakashweb.com/docs/shortcoder-doc/import-export/#import-other-sources)
 *  Thread Starter [iozcelik](https://wordpress.org/support/users/iozcelik/)
 * (@iozcelik)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12368857)
 * I am using multiple database. One of them wordpress database, second is mine.
   I want to create a shortcode with my second database. It’s connection string 
   is different.
 * So I cannot use $wpdb, I need to prepare query on second database. However, as
   I understood, shortcoder does not support it in easy way.
    -  This reply was modified 6 years, 4 months ago by [iozcelik](https://wordpress.org/support/users/iozcelik/).
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12368868)
 * what shortcoder version you are using ?
 *  Thread Starter [iozcelik](https://wordpress.org/support/users/iozcelik/)
 * (@iozcelik)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12368871)
 * The lastest one. 5.1. And also wordpress version is lastest.
    -  This reply was modified 6 years, 4 months ago by [iozcelik](https://wordpress.org/support/users/iozcelik/).
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12368883)
 * Ok then. In that case, is it possible for you to export the shortcodes from the
   source website and import it in the target website ?
 * Please refer do below to export and import.
    [https://www.aakashweb.com/docs/shortcoder-doc/import-export/#export](https://www.aakashweb.com/docs/shortcoder-doc/import-export/#export)
 * Thanks,
    Aakash
 *  Thread Starter [iozcelik](https://wordpress.org/support/users/iozcelik/)
 * (@iozcelik)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12368918)
 * I dont need it. My request is different.
 * My wordpress website has 2 database. But only one of them include wordpress files.
 * Second is just my database and it has not any wordpress data.
 * I think “shortcoder” plugin need to has multiple database option.
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12369943)
 * hmm… I don’t see a reason why this should be a feature as a part of shortcoder
   as it is a very unique requirement.
 * What you could do is, import the database to the server to a different name where
   wordpress files are there, change the wordpress configuration so that the wordpress
   points to the database, export the shortcodes/posts, switch back to the original
   DB and import.
 * Thanks,
    Aakash

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘External Database’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/external-database-8/#post-12369943)
 * Status: not resolved