mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
New setting for post types
This commit is contained in:
@@ -132,6 +132,11 @@ function getPostPath(post, config) {
|
||||
// start with base output dir
|
||||
const pathSegments = [config.output];
|
||||
|
||||
// create fragment for post type, if there's more than one
|
||||
if (settings.post_types.length > 1) {
|
||||
pathSegments.push(post.meta.type);
|
||||
}
|
||||
|
||||
if (config.yearFolders) {
|
||||
pathSegments.push(dt.toFormat('yyyy'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user