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