Post Featured Image
Auto-renders the post's featured image. single_post / post_archive.
Type: "postFeaturedImage"
Auto-renders the post's featured image. single_post / post_archive.
Catatan: Element template-only. Berlaku di template:
single_post,post_archive,post_category,search.
Props
| Field | Type | Default | Keterangan |
|---|---|---|---|
aspectRatio | 'auto'|'16:9'|'4:3'|'1:1'|'3:2'|'21:9' | "16:9" | Aspect Ratio |
fit | 'cover'|'contain' | "cover" | Fit |
preset | 'cardMedium'|'cardWide'|'hero'|'thumbnail' | "cardWide" | Image Preset |
linkToPost | boolean | false | Link ke post |
fallbackBehavior | 'hide'|'placeholder'|'image' | "hide" | Jika gambar kosong |
fallbackImageUrl | string (image URL) | — | Gambar fallback (tampil saat fallbackBehavior = image) |
Contoh
{
"id": "pos01abc",
"type": "postFeaturedImage",
"props": {
"aspectRatio": "16:9",
"fit": "cover",
"preset": "cardWide",
"linkToPost": false,
"fallbackBehavior": "hide",
"fallbackImageUrl": ""
}
}