-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
command:post-updateRelated to 'post update' commandRelated to 'post update' command
Description
This is an exemple to enlight a missing behaviour or documentation improvement. I have posts with categories that I want to migrate to news with topics.
- I do a wp cli post edit to migrate the post type from posts to news:
for post_id in $(wp post list --post_type="post" --format=ids); do wp post update $post_id --post_type="news"; done; - I do a wp term migrate to migrate the terms from categories to topics:
for term_id in $(wp term list category --format=ids); do wp term migrate $term_id --from=category --to=topic; done;
It results in not having anymore the news assigned to the topics π’ Which is kind of normal since it would also require to change the relathionships.
What do you think about this?
Do you think it's a good idea to patch it or just add a warning in the documentation? or even both?
Anyway, I would be glad to contribute to this! π
Metadata
Metadata
Assignees
Labels
command:post-updateRelated to 'post update' commandRelated to 'post update' command