diff --git a/functions.php b/functions.php index 81d9360..be925d2 100644 --- a/functions.php +++ b/functions.php @@ -73,11 +73,19 @@ function sponsors_shortcode() { if ( $sponsors->have_posts() ) : while ( $sponsors->have_posts() ) : $sponsors->the_post(); + $custom = get_post_custom(); + if (!empty ($custom['url'])) { + echo ''; + } if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { get_the_title(); } + if (!empty ($custom['url'])) { + echo ''; + } + endwhile; endif;