Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi site support #113

Open
nblumoe opened this issue Nov 1, 2024 · 0 comments
Open

Multi site support #113

nblumoe opened this issue Nov 1, 2024 · 0 comments

Comments

@nblumoe
Copy link

nblumoe commented Nov 1, 2024

Hey, I tried the plugin, as well as the CLI version to export one of the sites from my self-hosted multi-site Wordpress instance.

When running the plugin, I had the to be exported site active in the Wordpress web UI.
The CLI tool I ran from: /var/www/wp-content/plugins/wordpress-to-hugo-exporter

The exporter finishes and produces a valid zip.
Here is the head of the folder from the produced zip:

$ tree ~/Downloads/hugo-export
/Users/abc/Downloads/hugo-export
├── config.yaml
├── posts
│   └── 2014-03-02-hello-world.md
├── sample-page
│   └── index.md
└── wp-content
    └── uploads
        └── sites
            ├── 3
            │   ├── 2012
            │   │   ├── 04
            │   │   │   ├── inpulse_pebble_combo3-100x100.jpg
            │   │   │   ├── inpulse_pebble_combo3-150x150.jpg
            │   │   │   ├── inpulse_pebble_combo3-300x168.jpg

It has the upload folders for all sites and no additional folders:

$ tree ~/Downloads/hugo-export -L 4
/Users/abc/Downloads/hugo-export
├── config.yaml
├── posts
│   └── 2014-03-02-hello-world.md
├── sample-page
│   └── index.md
└── wp-content
    └── uploads
        └── sites
            ├── 3
            ├── 5
            ├── 6
            └── 9

All posts seem to be missing, just the uploaded assets are found in the folders listed above.
The config.yaml includes data for the multi-site root, but not any specific site.

Does the export have multi-site support? If yes, how does it have to be used?
If not, is there a chance to add it or provide some guidance on a hacky way?

Thanks a lot for providing the exporter!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant