From e54b7a55647e9c84b6cdd00179a4bef25530f129 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Mon, 11 Feb 2019 12:36:58 -0500 Subject: [PATCH] linking the title and the image for the blog excerpt in media page template --- functions.php | 5 +++-- style.css | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 */ -- 2.17.1