14d3fc79 by Jeff Balicki

target

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