Intro

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.

Support forums

Having trouble and cannot find anything about it in the docs?

Somebody might have already been there.

View the forums