Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
fixed people links on business search results
Browse files Browse the repository at this point in the history
  • Loading branch information
jjc16105 committed Apr 19, 2016
1 parent 0d160c3 commit 84d18fd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions search.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
<?php if ( have_posts() ) : ?>

<header class="entry-header">
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'cs' ), '<span>' . get_search_query() . '</span>' ); ?></h1>

<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'cs' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header><!-- .page-header -->

<?php /* Start the Loop */ ?>
Expand All @@ -24,15 +25,13 @@
$url = get_field('external_url');
if( !empty($url) ){
$url = '<a href="'.$url.'" target="_blank">';
}elseif(strlen(get_the_content()) > 0){
}else{
$url = '<a href="'.get_permalink().'">';
}
?>

<h3><?php echo $url; ?><?php the_title();?></h3>
<?php if(strlen(get_the_content()) > 0 || !empty($url)) echo '</a>'; ?>

<?php the_excerpt(); ?> <!-- e.g. "All about jellyfish" -->
<h3><?php echo $url; ?><?php echo the_title() . '</a>';?></h3>
<?php the_excerpt(); ?>

<?php endwhile; ?>

Expand Down

0 comments on commit 84d18fd

Please sign in to comment.