{"id":1706765,"date":"2020-07-16T13:38:59","date_gmt":"2020-07-16T13:38:59","guid":{"rendered":"https:\/\/toolset.com\/?post_type=course-lesson&#038;p=1706765"},"modified":"2020-11-16T10:16:22","modified_gmt":"2020-11-16T10:16:22","slug":"seo-for-custom-fields-using-toolset-and-yoast-seo","status":"publish","type":"course-lesson","link":"https:\/\/toolset.com\/de\/course-lesson\/seo-for-custom-fields-using-toolset-and-yoast-seo\/","title":{"rendered":"SEO for custom fields using Toolset and Yoast SEO"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"why-you-should-include-custom-fields-in-your-sites-seo-strategy\">Why you should include custom fields in your site\u2019s SEO strategy<\/h2>\n\n\n\n<p>When using the Yoast SEO plugin, you need it to be able to analyze your whole page. This includes custom fields content and not only the standard WordPress fields like the title and post body.<\/p>\n\n\n\n<p>To illustrate this, let\u2019s consider the following image of a custom \u201cBook\u201d page with multiple custom fields.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"c7f017c8860b0f2148f89c7c58558af2\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-seo-custom-content-1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-seo-custom-content-1-500x469.png\" alt=\"Custom \"book\" page with multiple custom fields\" class=\"wp-image-1110282\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Custom &#8220;book&#8221; page with multiple custom fields<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>As you can see, there can be a lot of vital content coming from your custom fields.<\/p>\n\n\n\n<p>If Yoast SEO analyzes only standard WordPress content, it can report issues with missing content even though it is actually there.<\/p>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid tb-grid\" data-toolset-blocks-grid=\"9cbc03461b87a40447ddc413b8a01dd9\">\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"3034fbe886c11054e95b46b09d3e4112\">\n<p><strong>Analysis when Yoast SEO cannot \u201csee\u201d custom fields<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"3034fbe886c11054e95b46b09d3e4112\">\n<p><strong>Analysis when Yoast SEO can \u201csee\u201d custom fields<\/strong><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"029c1014a33db5eb5e9c4dd1cfbd18ff\"><div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"c2e2b534150e0e8f029b051f7112dac0\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-analysis-custom-fields-not-visible.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-analysis-custom-fields-not-visible-500x538.png\" alt=\"Analysis when Yoast SEO cannot \"see\" custom fields\" class=\"wp-image-1110287\"\/><\/a><\/figure>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-toolset-blocks-grid-column tb-grid-column tb-grid-align-top\" data-toolset-blocks-grid-column=\"937a85ae65055b31005d69bed9fe695f\"><div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"7949068cd6ca3b251e56c0d3002bc25b\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-analysis-custom-fields-visible.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-analysis-custom-fields-visible-500x511.png\" alt=\"Analysis when Yoast SEO can \"see\" custom fields\" class=\"wp-image-1110292\"\/><\/a><\/figure>\n<\/div><\/div>\n<\/div>\n\n\n\n<p>As you can see, the results&nbsp;are quite different.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-set-yoast-options-for-custom-fields\">How to set Yoast options for custom fields<\/h2>\n\n\n\n<p>Toolset sets very good Yoast SEO defaults but you can easily tweak them to better suit your content.<\/p>\n\n\n\n<p>You can set Yoast SEO options from the&nbsp;<strong>Toolset&nbsp;<\/strong>\u2192&nbsp;<strong>Custom Fields&nbsp;<\/strong>page when creating or editing your groups of custom fields.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"d2469a10b3836204dc54c1c1e60e124a\"><a href=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-seo-custom-field-setting.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/toolset.com\/wp-content\/uploads\/2018\/09\/toolset-yoast-seo-custom-field-setting-500x658.png\" alt=\"Yoast SEO option for the \"Single line\" custom field\" class=\"wp-image-1110297\"\/><\/a><div class=\"tb-image-caption\"><figcaption>Yoast SEO option for the &#8220;Single line&#8221; custom field<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>Different types of custom fields can have different settings.<\/p>\n\n\n\n<p>For example, if you use a \u201cSingle line\u201d custom field inside a heading on the front-end, you can select this in the Yoast SEO option for that field.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"using-the-raw-options\">Using the \u201cRaw\u201d Options<\/h2>\n\n\n\n<p>Finally, you can select the&nbsp;<strong>Raw<\/strong>&nbsp;option for certain fields. It means that no additional content formatting will be added to the value of that field.<\/p>\n\n\n\n<p>For example, if you have a single line field and select the&nbsp;<strong>Paragraph<\/strong>&nbsp;under the&nbsp;<strong>Yoast Analysis<\/strong>&nbsp;option, the value of this single line field will be wrapped in a&nbsp;<strong>p&nbsp;<\/strong>tag, like this:<\/p>\n\n\n\n<p><code>&lt;p&gt;FIELD VALUE&lt;\/p&gt;<\/code><\/p>\n\n\n\n<p>However, your&nbsp;<strong>FIELD VALUE&nbsp;<\/strong>may already contain the paragraph tag and using the&nbsp;<strong>Paragraph&nbsp;<\/strong>option would result in the following output:<\/p>\n\n\n\n<p><code>&lt;p&gt;&lt;p&gt;My value&lt;\/p&gt;&lt;\/p&gt;<\/code><\/p>\n\n\n\n<p>In cases like this, you can use the&nbsp;<strong>Raw&nbsp;<\/strong>option and prevent adding the additional formatting.<\/p>\n","protected":false},"author":4341,"featured_media":1708819,"template":"","related-lesson":[8503],"class_list":["post-1706765","course-lesson","type-course-lesson","status-publish","has-post-thumbnail","hentry","related-lesson-seo"],"_links":{"self":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1706765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson"}],"about":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/types\/course-lesson"}],"author":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/users\/4341"}],"version-history":[{"count":7,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1706765\/revisions"}],"predecessor-version":[{"id":1708829,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/course-lesson\/1706765\/revisions\/1708829"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media\/1708819"}],"wp:attachment":[{"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/media?parent=1706765"}],"wp:term":[{"taxonomy":"related-lesson","embeddable":true,"href":"https:\/\/toolset.com\/de\/wp-json\/wp\/v2\/related-lesson?post=1706765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}