How do I assign a story to multiple chapters at once? #67
-
Can I even do this? I just migrated hundreds of posts. I tried bulk edit but assigning story is not available. Do I have to manually assign these chapters one by one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There is currently no bulk edit field for this, correct. Maybe I'll add one, but it's a bit complicated due to the data structure. Changing the story assignment of a chapter must ensure it is removed from the previous one (if any), caches need to be cleared, it's a performance issue that can crash the script and damage the database, and so forth. That's why I didn't add that. Yet. As for a solution to your issue, I linked a migration guide in the Readme for this very task. The simple method should serve you well with a few changes to the query, since you already converted the post type to |
Beta Was this translation helpful? Give feedback.
-
I'm currently working on a bulk edit field to change the story. It's... an effort. |
Beta Was this translation helpful? Give feedback.
There is currently no bulk edit field for this, correct. Maybe I'll add one, but it's a bit complicated due to the data structure. Changing the story assignment of a chapter must ensure it is removed from the previous one (if any), caches need to be cleared, it's a performance issue that can crash the script and damage the database, and so forth. That's why I didn't add that. Yet.
As for a solution to your issue, I linked a migration guide in the Readme for this very task. The simple method should serve you well with a few changes to the query, since you already converted the post type to
fcn_chapter
. If you have multiple stories, you will need to consider that in the query as well to onl…