From 84d18fd897d6237d42ee6115d95f7062d43afaeb Mon Sep 17 00:00:00 2001 From: John Calande Date: Tue, 19 Apr 2016 14:57:57 -0400 Subject: [PATCH 1/4] fixed people links on business search results --- search.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/search.php b/search.php index f103f8d..0e518fc 100644 --- a/search.php +++ b/search.php @@ -15,7 +15,8 @@ get_header(); ?>
-

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

+ +

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

@@ -24,15 +25,13 @@ get_header(); ?> $url = get_field('external_url'); if( !empty($url) ){ $url = ''; - }elseif(strlen(get_the_content()) > 0){ + }else{ $url = ''; } ?> -

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

';?>

+ From 237e6965eed07a1f14674d3e290d66c24af1773d Mon Sep 17 00:00:00 2001 From: John Calande Date: Wed, 20 Apr 2016 08:41:14 -0400 Subject: [PATCH 2/4] 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 '
'; ?> + + From 8153a04340358ed01680851f0059cc659dbdef71 Mon Sep 17 00:00:00 2001 From: John Calande Date: Wed, 20 Apr 2016 14:57:22 -0400 Subject: [PATCH 3/4] 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 = ''; } From fc1e831bd436255171bb90d2c9ee03935252139e Mon Sep 17 00:00:00 2001 From: Joshua Roy Date: Thu, 19 May 2016 13:43:29 -0400 Subject: [PATCH 4/4] Added default for title split --- header.php | 177 +++++++++++++++++++++++++++-------------------------- 1 file changed, 90 insertions(+), 87 deletions(-) diff --git a/header.php b/header.php index cf68796..335fe77 100644 --- a/header.php +++ b/header.php @@ -1,87 +1,90 @@ - section and everything up till
- * - */ -include 'inc/vars.php'; -?> - -> - - - - - - -<?php wp_title( '|', true, 'right' ); ?> - - - - - - - - - - -> - - - - - - - -
- - -
-
+ section and everything up till
+ * + */ +include 'inc/vars.php'; +?> + +> + + + + + + +<?php wp_title( '|', true, 'right' ); ?> + + + + + + + + + + +> + + + + + + + +
+ + +
+