mirror of
https://github.com/10h30/wordpress-export-to-markdown.git
synced 2026-07-11 18:56:14 +09:00
Add as a wizard question, automatically gather post types
This commit is contained in:
+2
-2
@@ -132,8 +132,8 @@ 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) {
|
||||
// create fragment for post type if we're dealing with more than just "post"
|
||||
if (config.includeOtherTypes) {
|
||||
pathSegments.push(post.meta.type);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user