Events Manager Event Image Rich Snippet
a guest Oct 22nd, 2013 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- case '#_SCHEMAIMAGE':
- $event_image = wp_get_attachment_image_src( get_post_thumbnail_id($em->ID), 'medium');
- $replace = '<img style="display:none;" rel="image_src" itemprop="image" src="' . $event_image . '"/>';
RAW Paste Data