Created
March 9, 2015 17:44
-
-
Save bappi-d-great/98014eb14b5211c2d821 to your computer and use it in GitHub Desktop.
Show featured image in eab_archive shortcode in WPMU Events+
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
<?php | |
add_filter( 'eab-template-archive_after_view_link', 'get_event_thumb', 10, 2 ); | |
function get_event_thumb( $a, $e ){ | |
$myimage = wp_get_attachment_image_src( get_post_thumbnail_id( $e->get_id() ), 'thumbnail' ); | |
return '<div class="ev_thumb"><img src="' . $myimage[0] . '" />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment