SEO

Content Fields

TemplateX reads SEO values from normal post fields, so editors can manage SEO per page or post.

Default Fields#

TemplateX reads three fields on singular posts and pages:

FieldPurpose
seo_titleOverrides the visible WordPress title for the document title and social title.
seo_descriptionBecomes the meta description and social description.
seo_imageBecomes the Open Graph and Twitter image.

seo_image can be an attachment ID, an ACF image array, or a URL.

Fallback Description#

If seo_description is empty and fallbackExcerpt is enabled, TemplateX uses the post excerpt.

If there is no excerpt, TemplateX trims post content into a short description.

Custom Field Names#

Change titleField, descriptionField, and imageField in template-x.config.json when a project already uses different field names.

The editor panel uses the configured field names too.