Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Add Featured Image Tag to Timber
/* populates the twig tag {{ featured_image_tag }} */
add_filter('timber_context', function( $context ){
$context['featured_image_tag'] = get_the_post_thumbnail( null, 'full' );
return $context;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment