Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MinnPost migrator #387

Open
wants to merge 33 commits into
base: trunk
Choose a base branch
from
Open

MinnPost migrator #387

wants to merge 33 commits into from

Conversation

iuravic
Copy link
Collaborator

@iuravic iuravic commented Dec 11, 2023

No description provided.

@ronchambers
Copy link
Collaborator

At this latest commit, the command to set CAP Guest Authors from postmeta _mp_subtitle_settings_byline, will process byline names that match first last.

Command: wp newspack-content-migrator minnpost-set-authors-by-subtitle-byline

It is recommended to wait to run this on staging, until the remaining non-first-last bylines are added to the command.

@ronchambers
Copy link
Collaborator

ronchambers commented Jan 26, 2024

Commit 85f1812 updates the Set Featured Images CLI to use the "main" (larger) image if exists, else use the "thumbnail" (smaller) image if it exists.

Command: wp newspack-content-migrator minnpost-set-featured-images

Notice: any existing _thumbnail_id values on published posts will be updated if a "main" or "thumb" image was found.

@ronchambers
Copy link
Collaborator

ronchambers commented Jan 29, 2024

( go to updated comment below for command: wp newspack-content-migrator minnpost-convert-categories-to-tags )

@ronchambers
Copy link
Collaborator

Commit 2df7510 finalizes CLI command to convert select categories to tags.

Command: wp newspack-content-migrator minnpost-convert-categories-to-tags

Notes:

  • Command loops through existing posts in category, removes category, and adds tag.
  • Command does not remove the empty category when finished. Do by hand.

@ronchambers
Copy link
Collaborator

Commit 30358fa finalizes command to set Yoast Primary Categories.

Command: wp newspack-content-migrator minnpost-set-primary-category

Based on the discovery in the Asana task, the only way to makes sure the staging primary category matches the live primary category is to do a remote_get of the live url.

@ronchambers
Copy link
Collaborator

Commit 0d6be84 adds a CLI command to convert string based Bylines into CAP Guest Authors.

Prior to first run, please use the flag --test-regex to test the bylines without updating the DB.

The command also requires 2 files, a known names file and a know suffixes file. These will be shared in GDrive.

Test command: wp newspack-content-migrator minnpost-set-authors-by-subtitle-byline --txt-names=known-names.txt --txt-suffixes=known-suffixes.txt --test-regex

Real command: wp newspack-content-migrator minnpost-set-authors-by-subtitle-byline --txt-names=known-names.txt --txt-suffixes=known-suffixes.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants