9b4fec17 by Jeff Balicki

qa

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent aa54cbac
......@@ -15,16 +15,18 @@ $img = "";
$post_type = get_post_type(get_the_ID());
$permalink = get_permalink();
$target = '';
$excerpt = get_the_excerpt();
if($post_type == 'attachment') {
$permalink = wp_get_attachment_url( get_the_ID());
if ( wp_attachment_is_image(get_the_ID()) ) {
$img = wp_get_attachment_url( get_the_ID());
}
$target = 'target="_blank"';
$excerpt = get_post_meta ( get_the_ID(), 'description', true );
}else if($post_type == 'documents'){
$permalink = get_post_meta( get_the_ID(), 'document_link', true );
$target = 'target="_blank"';
$excerpt = get_post_meta ( get_the_ID(), 'description', true );
}
$term_list = array();
......@@ -78,7 +80,7 @@ if ( !empty( $terms ) && !is_wp_error( $terms ) ){
<div class="entry-summary" id='content'>
<?= str_replace("[...]Read More...", "",wp_strip_all_tags(get_the_excerpt(), true)); ?>
<?= str_replace("[...]Read More...", "",wp_strip_all_tags($excerpt, true)); ?>
</div><!-- .entry-summary -->
......