Image

Incorporates a selectable image field from the library of WordPress media.

Returns an HTML img tag

<?php
/*
---------------------------------------------------------------------
{"type": "image", "name": "Illustration", "slug": "illustration"}
---------------------------------------------------------------------
*/
?>

Extraction

The image field return html img image. It has a second parameter “size” like the WordPress function the_post_thumbnail()

<figure>
  	<?php the_wpcomponent( 'illustration', 'full' ) ?>
</figure>

Variable

The variable mode of image field only returns the URL of the source and not the html of the image.

<figure>
  	<img src="<?php echo get_wpcomponent( 'illustration' ) ?>" alt="Illustration" />
</figure>