scf-post-image

Outputs featured image of the post. If ID or Slug is provided, outputs the featured image of that particular post.

Short Code

[scf-post-image]

Attributes

Attribute Description Default Value
id ID of the target post. Optional
slug The slug of the target post. This takes precedence over ‘id’ attribute. If you use ‘id’ and ‘slug’ attribute, the ‘id’ attribute is ignored. Optional
type
Type Attribute Value
ID id
URL url
HTML Image Element html
Optional url
format This attribute is application only in case of ‘type’ attribute is set to ‘url’ or ‘html’.

Format Attribute Value
Thumbnail thumbnail
Medium medium
Large / Full full

 

Optional thumbnail