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
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 3 years, 8 months ago by
iozcelik.
what shortcoder version you are using ?
The lastest one. 5.1. And also wordpress version is lastest.
-
This reply was modified 3 years, 8 months ago by
iozcelik.
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
Thanks,
Aakash
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.
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