Show the Featured Image


The following code will show the featured image or thumbnail of a post or page.

Substitute “thumbnail” with the desired thumbnail size you would like to use. It can be medium, large or your own custom size.

If you would like to link to the image in a lightbox use the following code:

If you would like to add a class or id to the featured image use the following code

The class in the above example is “index-thumb”.

Leave a Reply

avatar
  Subscribe  
Notify of