-
Notifications
You must be signed in to change notification settings - Fork 0
Yoast SEO
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.
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.
Quick start
- Creating fields and using their values
- Installation
- Administration interface
- Using the PHP API
- Container Settings
Locations
- Overview & Usage
- Post Type
- Options Page
- Taxonomy
- Comment
- User
- Widget
- Shortcode
- Menu Item
- Attachment
- Customizer
Fields
- Fields
- Text
- Textarea
- WYSIWYG
- Password
- Checkbox
- Select
- Multiselect
- Image Select
- File
- Image
- Audio
- Video
- Gallery
- WP Object
- WP Objects
- Link
- Date
- DateTime
- Time
- Color
- Font
- Icon
- Map
- Embed
- Number
- Sidebar
- Complex
- Repeater
- Layout
- Section
- Tab
- Message
Features
- Adding fields to the Customizer
- Conditional Logic
- Front-End Forms
- Administration columns
- Import and Export
- REST API
- JSON Synchronization
- Yoast SEO
Ultimate Post Types
Functions and API
Tutorials