Remove content-none from <ul>

See #1016
This commit is contained in:
IanDelMar 2020-04-22 08:07:50 +02:00
parent c4eeba9d3a
commit ffdf78867e
1 changed files with 2 additions and 5 deletions

View File

@ -62,12 +62,10 @@ $container = get_theme_mod( 'understrap_container_type' );
<h2><?php echo esc_html__( 'Posts by', 'understrap' ) . ' ' . esc_html( $curauth->nickname ); ?>:</h2>
</header><!-- .page-header -->
<ul>
<!-- The Loop -->
<?php
if ( have_posts() ) {
echo '<ul>';
while ( have_posts() ) {
the_post();
echo '<li>';
@ -82,14 +80,13 @@ $container = get_theme_mod( 'understrap_container_type' );
the_category( '&' );
echo '</li>';
}
echo '</ul>';
} else {
get_template_part( 'loop-templates/content', 'none' );
}
?>
<!-- End Loop -->
</ul>
</main><!-- #main -->
<!-- The pagination component -->