I am trying to use WP2Static to deploy one site from a multisite WP install, following
I am testing using a brand new WP site.
I have reset WP2static settings to factory.
I ran "Start Static Export", which seemed to work.
I clicked on "Go to my static site".
The content generated is definitely from the MySQL instance I use for my WordPress installation, but is from a db set up for a different WP site.
Q: does WP2static work with WP multisite?
Q: If so, how can I specify, for a site FOO on my multisite WP instance, a database to use to generate a static site using WP2Static?
- 3 replies
- In reply todagmar⬆:Frans Allen @frans2019-10-02 04:15:43.716Z
This is Frans. Many thanks for your query.
Go to my static site button will go right where you put the Destination URL after a successful deploy.
For your questions:
Does WP2static work with WP multisite?
If so, how can I specify, for a site FOO on my multisite WP instance, a database to use to generate a static site using WP2Static?
Answer: The plugin will work for the site where the plugin is run. Unless we use WP-CLI to set which sites will be made static.
Multisite is one that we want to explore, we will share with you when we find something nice. Let me know if there are errors for the answers above, or you have other questions.
In the meantime, can you clarify whether this problem has been resolved?
- DJud Taylor @dagmar2019-09-29 15:06:37.101Z
I have read that WP2Static does work on Multisite.
So, how should I control which db from my MySQL is used to generate a static site?
I have a db that holds content for OLDSITE.
I have installed WP, enabled multisite, and have a brand-new site FOO.
When, from the WP admin interface for FOO, I run WP2Static, a static site is generated, but it is apparently using data from the db for OLDSITE.
I suspect a setting exists to control, for site FOO, to use FOO's db.