daily pastebin goal
17%
SHARE
TWEET

Events Manager Event Image Rich Snippet

a guest Oct 22nd, 2013 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. case '#_SCHEMAIMAGE':
  2. $event_image = wp_get_attachment_image_src( get_post_thumbnail_id($em->ID), 'medium');
  3. $replace = '<img style="display:none;" rel="image_src" itemprop="image" src="' . $event_image[0]  . '"/>';
  4. break;
RAW Paste Data
Top