From 4a4bb1a5b00bf6e05ac4076226581fc87e1b3e85 Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Tue, 14 Oct 2014 16:23:22 +0300 Subject: [PATCH] make the sponsors clickable, if they have a url --- page-sponsors.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/page-sponsors.php b/page-sponsors.php index 6147f57..b2db166 100644 --- a/page-sponsors.php +++ b/page-sponsors.php @@ -24,13 +24,21 @@ get_header(); ?> while ( $sponsors->have_posts() ) : $sponsors->the_post(); ?>
-'; + } + if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { the_title(); } + if (!empty ($custom['url'])) { + echo ''; + } the_excerpt(); ?>