Added description not informed to card list on collection list

This commit is contained in:
Fabiano Alencar 2018-09-17 12:48:45 -03:00
parent dc3afba414
commit cbcd4391d0
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@
</div>
<?php endif; ?>
<div class="media-body text-oslo-gray">
<p><?php echo wp_trim_words( get_the_excerpt(), 35, '[...]'); ?></p>
<?php if(get_the_excerpt()) : ?>
<p><?php echo wp_trim_words( get_the_excerpt(), 35, '[...]'); ?></p>
<?php else : ?>
<p style="font-style: italic;"><?php _e('Description not informed'); ?></p>
<?php endif; ?>
<!-- <p>
<?php //_e('Create by: ');?> <?php //the_author(); ?><br>
<?php //_e('Date: ');?> <?php //tainacan_post_date(); ?>