Skip to content

Commit c84ceae

Browse files
committed
Fix boolean check for show_excerpt argument
1 parent efa4cbc commit c84ceae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/frontend/class-display.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ public static function get_articles_loop( $term, int $level, \WP_Query $query, a
669669
$output .= '<li class="wzkb-article-name post-' . get_the_ID() . '">';
670670
$output .= '<a href="' . get_permalink() . '" rel="bookmark" title="' . get_the_title() . '">' . get_the_title() . '</a>';
671671

672-
if ( $args['show_excerpt'] ) {
672+
if ( ! empty( $args['show_excerpt'] ) ) {
673673
$output .= '<div class="wzkb-article-excerpt post-' . get_the_ID() . '">' . get_the_excerpt() . '</div>';
674674
}
675675

0 commit comments

Comments
 (0)