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

Short Code



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 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