Display Featured Image

Like @jdm2112, I’m not a Gensis user, but here is an alternative method to retrieving the featured image. I use this method because it offers more functionality to altering the featured image (ie: thumbnail size).

You can add these functions to your functions.php file.

public function get_featured_image_id() {
    return (int) $this->get_meta( '_thumbnail_id' );
}

/**
 * Get the featured image url for the given featured image id
 *
 * @param string $size
 * @return string|false
 */
public function get_featured_image_url( $size="full" ) {

    $attachment_id = $this->get_featured_image_id();
    if ( ! $attachment_id ) {
        return false;
    }
    $src = wp_get_attachment_image_src( $attachment_id, $size );
    if ( ! $src ) {
        return false;
    }

    return $src[0];
}

/**
 * Get the HTML for the featured image html
 *
 * @return string
 */
public function get_featured_image_html( $size="full" ) {

    if ( $featured_image_id = $this->get_featured_image_id() ) {
        return wp_get_attachment_image( $featured_image_id, $size, '' );
    } else {
        return '';
    }
}

Use case in your WordPress “The Loop”

echo esc_url( $post->get_featured_image_url( the_id() ) );