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

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #143 from jmr06005/master
Added conditional statement to get_field on search page
  • Loading branch information
jmr06005 committed Jul 18, 2016
2 parents 118dd84 + f1df709 commit dafd775
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion search.php
Expand Up @@ -21,7 +21,8 @@ get_header(); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post();?>
<?php
$url = get_field('external_url');
$url = '';
if(function_exists('get_field')) $url = get_field('external_url');
if( empty($url) ){
$url = '<a href="'.get_permalink().'">';
}else{
Expand Down

0 comments on commit dafd775

Please sign in to comment.