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

Commit

Permalink
Merge pull request #2 from jmr06005/master
Browse files Browse the repository at this point in the history
Fixing presslink
  • Loading branch information
jmr06005 committed Mar 11, 2016
2 parents 1ae7417 + 255eb23 commit ae4d93e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content-presspage-top.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<div class="row">
<div class="col-sm-6">
<?php
$presslink = press_link(get_the_ID());
$external_link = get_post_meta(get_the_ID(),'external_link');
if((strlen(get_the_content()) > 0 || !empty($external_link)) && has_post_thumbnail()) {
echo'<a href="'.get_the_permalink().'">'.get_the_post_thumbnail().'</a>';
echo'<a href="'.$presslink.'">'.get_the_post_thumbnail().'</a>';
} elseif(has_post_thumbnail()) {
the_post_thumbnail();
} else {
Expand All @@ -18,7 +19,7 @@
<h4 class="entry-title">
<?php
if(strlen(get_the_content()) > 0 || !empty($external_link)) {
echo'<a href="'.get_the_permalink().'">'.get_the_title().'</a>';
echo'<a href="'.$presslink.'">'.get_the_title().'</a>';
} else {
the_title();
}
Expand Down

0 comments on commit ae4d93e

Please sign in to comment.