06/28/2016 at 9:13 am
#380776
Participant
Thanks for your reply, Stephen. I do have the display categories switchen on, so I thought it should work fine. However, just in case, I have moved that now but it still doesn’t show. It’s as if it doesn’t understand the “Excerpt” variable? Here is my new code:
<?php $entry->getContentBlock( $atts['content'], $atts, $template ); ?>
<div class="cn-clear" style="display:table;margin: 10px 0;width:100%;">
<div style="display:table-cell;vertical-align:middle;">
<?php
if ( $atts['show_categories'] ) {
$entry->getCategoryBlock(
array(
'separator' => ', ',
'label' => __( $atts['str_category_label'], 'cnt_cmap' ),
)
);
}
$entry->getExcerpt();
?>
</div>
<div style="display:table-cell;text-align:right;vertical-align:middle;">
<?php
if ( $atts['show_last_updated'] ) {
cnTemplatePart::updated(
array(
'timestamp' => $entry->getUnixTimeStamp(),
'style' => array(
'font-variant' => 'small-caps',
)
)
);
}
?>
</div>
