humanmade / altis-seo

SEO module for Altis
https://www.altis-dxp.com/resources/docs/seo/
6 stars 2 forks source link

Task: Create WP SEO -> Yoast SEO migration scripts #56

Closed jazzsequence closed 3 years ago

jazzsequence commented 3 years ago

Migrate any existing WP SEO data into Yoast SEO. This includes both global settings and per-post meta.

Acceptance Criteria:

Dev Notes

how does WP SEO store the custom title, description and keywords for a post? How can those be migrated?

Both WP SEO and Yoast SEO store that information in post meta, and each have comparable meta keys for that data. Yoast uses a formula for the SEO title (e.g. %%title%% %%page%% %%sep%% %%sitename%%). We could either default to this or migrate existing data in the WP SEO _meta_title field to _yoast_wpseo_title, which is the Yoast equivalent and only added if the title was manually changed from the default pattern.

Screen Shot 2021-05-10 at 12 37 13 PM

Probably what makes the most sense is to migrate the meta data over if it exists -- WP SEO also has default patterns which would get migrated over as part of the migration process, so the most important information here is the meta descriptions and SEO keywords, which would be unique for each post.

roborourke commented 3 years ago

Are you thinking the migration script would run on wp altis migrate by default but you could run it individually on wp altis migrate seo?

I was thinking wp altis migrate can just be a catch-all for everything you'd want to when upgrading from one major version to another so a subcommand isn't strictly necessary.

jazzsequence commented 3 years ago

I was mostly thinking of just running it on wp altis migrate seo but also hooking it back to wp altis migrate makes sense, too.