Yoast SEO

Radoslav Georgiev edited this page Oct 21, 2018 · 2 revisions


Ultimate Fields has native support for the Yoast SEO plugin. The integration allows Ultimate Fields to forward field values to Yoast SEO in order for them to be included in the SEO score.

Most field types automatically generate the necessary virtual markup and send it to the API of the SEO plugin without any additional actions required. This means that an image field would be included as an image element in the markup, which is getting graded and etc.. All of this is happening only in the back-end, meaning that no values could be accidentally shown in the front-end.

Customizing Headings

As mentioned above, most fields will automatically format the data that they are sending to the SEO plugin accordingly.

One exception is the Text field. Normally the value of each field will be included in the checkup as a paragraph, but since the value of a text field will often be used for a heading, you may specify that it should be considered one.

To instruct Ultimate Fields that a text field is a heading, use one of the following CSS classes for it:

  • seo-h1
  • seo-h2
  • seo-h3
  • seo-h4
  • seo-h5

In the user interface, you can use the "Class" attribute of the field to do so.

In PHP, use the set_attr method of the field like this:

Field::create( 'text', 'post_subtitle' )
	->set_attr( 'class', 'seo-h2' )

Ultimate FIelds will automatically read the class out and generate the proper tag for the analysis.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.