From 8153a04340358ed01680851f0059cc659dbdef71 Mon Sep 17 00:00:00 2001 From: John Calande Date: Wed, 20 Apr 2016 14:57:22 -0400 Subject: [PATCH] check for post_type='post', remove check for post_type='person' --- search.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search.php b/search.php index de7873a..4cbbf63 100644 --- a/search.php +++ b/search.php @@ -24,13 +24,13 @@ get_header(); ?> $post = get_post( get_the_ID() ); - // is this a 'person' or a 'page' post type? - $is_person_post_type = ( $post->post_type == "person" ); + // is this a 'post' type? + $is_post_type = ( $post->post_type == "post" ); $url = get_field('external_url'); if( !empty($url) ){ $url = ''; - }elseif(strlen(get_the_content()) > 0 || $is_person_post_type){ + }elseif( (strlen(get_the_content()) > 0 ) || ( ! $is_post_type )){ $url = ''; }