Skip to content

Commit 5d45137

Browse files
committed
Move taxonomy header outside have_posts() conditional in category template
1 parent cfcfb88 commit 5d45137

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

includes/frontend/templates/taxonomy-wzkb_category.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@
3232
<main id="main" class="site-main" role="main">
3333
<?php wzkb_breadcrumb(); ?>
3434
<?php wzkb_search_form(); ?>
35-
<?php if ( have_posts() ) : ?>
3635

37-
<header class="page-header">
38-
<h1 class="page-title"><?php echo esc_html( $wzkb_current_taxonomy->name ); ?></h1>
39-
<?php if ( ! empty( $wzkb_current_taxonomy->description ) ) : ?>
40-
<div class="taxonomy-description"><?php echo wp_kses_post( $wzkb_current_taxonomy->description ); ?></div>
41-
<?php endif; ?>
42-
</header><!-- .page-header -->
36+
<header class="page-header">
37+
<h1 class="page-title"><?php echo esc_html( $wzkb_current_taxonomy->name ); ?></h1>
38+
<?php if ( ! empty( $wzkb_current_taxonomy->description ) ) : ?>
39+
<div class="taxonomy-description"><?php echo wp_kses_post( $wzkb_current_taxonomy->description ); ?></div>
40+
<?php endif; ?>
41+
</header><!-- .page-header -->
42+
43+
<?php if ( have_posts() ) : ?>
4344

4445
<?php
4546
// Display knowledge base content for this category.

0 commit comments

Comments
 (0)