From 237e6965eed07a1f14674d3e290d66c24af1773d Mon Sep 17 00:00:00 2001 From: John Calande Date: Wed, 20 Apr 2016 08:41:14 -0400 Subject: [PATCH] Fix links for people pages not showing up in search results --- search.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/search.php b/search.php index 0e518fc..de7873a 100644 --- a/search.php +++ b/search.php @@ -15,23 +15,31 @@ get_header(); ?>
- -

' . get_search_query() . '' ); ?>

+

' . get_search_query() . '' ); ?>

post_type == "person" ); + $url = get_field('external_url'); if( !empty($url) ){ $url = ''; - }else{ + }elseif(strlen(get_the_content()) > 0 || $is_person_post_type){ $url = ''; } + ?> -

';?>

- +

+ 0 || !empty($url) || $is_person_post_type) echo '
'; ?> + +