01
get(‘event’);
$link = sprintf(
‘%3$s‘,
get_post_permalink( $event ),
get_the_post_thumbnail_url( $event ),
get_the_post_thumbnail( $event, ‘large’, array( ‘class’ => ‘alignleft’ ) )
);
echo $link;
}
?>
02
get(‘event’);
// Get the event title
$event_title = get_the_title($event);
// Generate the category link from the event title
$category_name = sanitize_title_with_dashes($event_title);
$category_link = ‘https://vip.attractionsuite.com/amber-test/events/category/’ . $category_name . ‘/’;
// Output the event title link
echo ‘‘ . $event_title . ‘‘;
// Output the event thumbnail
echo get_the_post_thumbnail( $event, ‘large’, array( ‘class’ => ‘alignleft’ ) );
}
?>