Post Excerpt
Auto-renders the post excerpt with truncation. Falls back to trimmed content. single_post / post_archive.
Type: "postExcerpt"
Auto-renders the post excerpt with truncation. Falls back to trimmed content. single_post / post_archive.
Note: Template-only element. Valid in templates:
single_post,post_archive,post_category,search.
Props
| Field | Type | Default | Description |
|---|---|---|---|
maxLength | number (0–2000) | 160 | 0 disables truncation |
fallbackToContent | boolean | true | Fall back ke trim konten kalau excerpt kosong |
ellipsis | string | "…" | Akhiran (ellipsis) |
Example
{
"id": "pos01abc",
"type": "postExcerpt",
"props": {
"maxLength": 160,
"fallbackToContent": true,
"ellipsis": "…"
}
}