Hi, I am trying to export all my post, pages and uploads to jekyll but with no luck. The wp-content directory is empty.
I've tried with both wp-cli
and php jekyll-export-cli.php > jekyll-export.zip
. As I have a custom wordpress structure, I thought that wp-cli will solve the problem, but it didn't.
The first error that I've encounter with wp-cli was that it can not find jekyll-export
as a command. So I downloaded the plugin to ~/.wp-cli
as explained here https://github.com/wp-cli/wp-cli/wiki/Community-Packages
After that, the plugin was able to run, but with errors like:
PHP Fatal error: Cannot redeclare cli\render()
After commenting all the function redeclared, I keep getting things like:
Cannot redeclare class Spyc in
I do not know what more I can do to be able to download the contents of wp-content.
Is worth mentioning that I have a custom wordpress structure, like this:
.
├── content
├── index.php
├── robots.txt
├── wordpress
└── wp-config.php
So I modified the file jekyll-export-cli
to
include "../../../wordpress/wp-load.php";
include "../../../wordpress/wp-admin/includes/file.php";
Hope you can help me. Regards