14d3fc79 by Jeff Balicki

target

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent eb3ba6a3
......@@ -104,7 +104,7 @@ foreach($posts as $post ) {
</div>
<?php endif; ?>
<div class='content'>
<?php echo '<a class="'.$term_list.'" href="'.$link.'">'.$post->post_title.'</a>';
<?php echo '<a target="_blank" class="'.$term_list.'" href="'.$link.'">'.$post->post_title.'</a>';
if($description != ""){
echo '<p>'.$description.'</p>';
};
......
......@@ -22,7 +22,11 @@ if($post_type == 'attachment') {
}
$target = 'target="_blank"';
}else if($post_type == 'documents'){
$permalink = get_post_meta( get_the_ID(), 'document_link', true );
$target = 'target="_blank"';
}
$term_list = array();
$terms = wp_get_post_terms( $post->ID, 'document-format');
if ( !empty( $terms ) && !is_wp_error( $terms ) ){
......