From: Anthony Talarico Date: Mon, 11 Feb 2019 17:36:58 +0000 (-0500) Subject: linking the title and the image for the blog excerpt in media page template X-Git-Tag: v1.0.34^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=e54b7a55647e9c84b6cdd00179a4bef25530f129;p=WP-Themes%2Fvisitbenzie.git linking the title and the image for the blog excerpt in media page template --- diff --git a/functions.php b/functions.php index 82da8ae..e2ca4bd 100644 --- a/functions.php +++ b/functions.php @@ -219,11 +219,12 @@ function blog_feed($category='',$limit=1){ ob_start(); foreach($posts as $post){ $image = ''; + $url = get_permalink($post->ID); if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); endif; - echo "

$post->post_title

"; - echo "
"; + echo "

$post->post_title

"; + echo "
"; echo "
". content_excerpt($post->ID, 30)."
"; } $output = ob_get_contents(); diff --git a/style.css b/style.css index bc203be..a08eec0 100644 --- a/style.css +++ b/style.css @@ -3,5 +3,5 @@ Theme Name: visitbenzie Author: Gaslight Media Author URI: http://www.gaslightmedia.com Description: A theme for Benzie Area Visitors Bureau -Version: 1.0.33 +Version: 1.0.34 */