Forked from theeventscalendar/thumbnails in List Widget
Created
February 22, 2016 23:15
-
-
Save lepittenger/d2de9743a7d846063408 to your computer and use it in GitHub Desktop.
Add thumbnail images to the Upcoming Events List Widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_widget_featured_image() { | |
global $post; | |
echo tribe_event_featured_image( $post->ID, 'thumbnail' ); | |
} | |
add_action( 'tribe_events_list_widget_before_the_event_title', 'custom_widget_featured_image' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment