Yoast SEO and Woocommerce Product CSV Import Suite
-
Hello,
After much investigation and experimentation, I have the Woocommerce Product CSV Import Suite importing and populating Yoast SEO fields. There are several Yoast SEO fields:
_yoast_wpseo_focuskw
_yoast_wpseo_title
_yoast_wpseo_metadesc
_yoast_wpseo_metakeywords
_yoast_wpseo_meta-robots-noindex
_yoast_wpseo_meta-robots-nofollow
_yoast_wpseo_meta-robots-adv
_yoast_wpseo_canonical
_yoast_wpseo_redirect…but for this illustration I’m using just the Focus Keyword field, _yoast_wpseo_focuskw.
Woothemes Instructions for adding custom fields got me started: in your field column list, just add META: to the beginning, right? Well, not really. I used META:_yoast_wpseo_focuskw in my field list, and it imported. However, this places a new custom field in the product’s custom field area, rather than populating the Yoast SEO fields.
Looking at the data in the postmeta table in MySQL, I could see that the imported records had a meta_key of META:_yoast_wpseo_focuskw, while manually-entered SEO had a meta_key of _yoast_wpseo_focuskw.
After several rounds of trying to fake out the Import Suite, I gave up and set my field column name to just plain old _yoast_wpseo_focuskw. At the Import screen, the built-in mapper can’t match this field to anything, so it sets a popup to “Do not import.” I changed the popup to “Custom Field with column name” and let it fly. Once the import was complete, all my Yoast SEO focus keywords were populated.
I know this is a bit off-topic for posting here, but I hope this helps others to reach a bulk-import resolution faster than I did. Maybe in the future, Woothemes will offer native support for Yoast SEO fields.
- The topic ‘Yoast SEO and Woocommerce Product CSV Import Suite’ is closed to new replies.