Yoast WordPress SEO

In this tutorial you’ll learn how to import posts into WordPress along with their settings for the Yoast WordPress SEO plugin. WP All Import makes it easy to import into almost any plugin or theme.

You can complete this import manually, as described below, or you can use the Yoast Add-On for WP All Import: https://wordpress.org/plugins/yoast-seo-settings-xml-csv-import/

The settings for Yoast are stored in Custom Fields attached to every post. Watch the video tutorial below to see how easy it is to import these settings:

Just like importing other Custom Fields, you can manually enter the field name into WP All Import or you can choose to have WP All Import auto detect all of the Custom Fields attached to the post type you’re importing to. Remember, in order for WP All Import to detect these Custom Fields there must be at least one post on your site using them.

Yoast uses thirteen different Custom Fields to store settings for your posts. If you don’t import a value to a Custom Field then Yoast WordPress SEO will simply assign your post the default for that field.

NameCustom FieldValues
Focus Keyword_yoast_wpseo_focuskwText string
SEO Title_yoast_wpseo_titleText string
Meta Description_yoast_wpseo_metadescText string
Meta Robots Index_yoast_wpseo_meta-robots-noindexBlank for default, 1 for noindex, or 2 for index
Meta Robots Follow_yoast_wpseo_meta-robots-nofollowBlank for follow, 1 for nofollow
Meta Robots Advanced_yoast_wpseo_meta-robots-advBlank for default, none, noodp, noydir, noimageindex, noarchive, or nosnippet
Include in Sitemap_yoast_wpseo_sitemap-includeBlank for auto, always, or never
Sitemap Priority_yoast_wpseo_sitemap-prioBlank for auto, 1 to .1
Canonical URL_yoast_wpseo_canonicalCanonical URL of post
301 Redirect_yoast_wpseo_redirectURL to redirect post to
Facebook Title_yoast_wpseo_opengraph-titleText string
Facebook Description_yoast_wpseo_opengraph-descriptionText string
Facebook Image_yoast_wpseo_opengraph-imageURL to image
Twitter Title_yoast_wpseo_twitter-titleText string
Twitter Description_yoast_wpseo_twitter-descriptionText string

Here’s an example of how your import template might look while importing Yoast WordPress SEO settings:

Yoast Custom Fields

Importing SEO data for Taxonomies

Yoast stores taxonomy SEO data via the Options API, so the Term Meta section won’t work – instead, you’ll need to use our add-on for Yoast: https://wordpress.org/plugins/yoast-seo-settings-xml-csv-import/. In the import settings, you’ll still use the term meta section to decide which fields to update. Here are all of the available taxonomy fields:

NameCustom FieldValues
Focus Keywordwpseo_focuskwText string
SEO Titlewpseo_titleText string
Meta Descriptionwpseo_descText string
Meta Robots Indexwpseo_noindexBlank for default, 1 for noindex, or 2 for index
Include in Sitemapwpseo_sitemap_includeBlank for auto, always, or never
Canonical URLwpseo_canonicalCanonical URL of post
Facebook Titlewpseo_opengraph-titleText string
Facebook Descriptionwpseo_opengraph-descriptionText string
Facebook Imagewpseo_opengraph-imageURL to image
Twitter Titlewpseo_twitter-titleText string
Twitter Descriptionwpseo_twitter-descriptionText string
Twitter Imagewpseo_twitter-imageURL to image