Default Fields#
TemplateX reads three fields on singular posts and pages:
| Field | Purpose |
|---|---|
seo_title | Overrides the visible WordPress title for the document title and social title. |
seo_description | Becomes the meta description and social description. |
seo_image | Becomes 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.