twenty_twenty_one_the_posts_navigation example

the_post();

        /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */
        get_template_part( 'template-parts/content/content-excerpt', get_post_format() );
    } // End the loop.
    // Previous/next page navigation.     twenty_twenty_one_the_posts_navigation();

    // If no content, include the "No posts found" template. } else {
    get_template_part( 'template-parts/content/content-none' );
}

get_footer();
<?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?> <?php if ( $description ) : ?> <div class="archive-description"><?php echo wp_kses_post( wpautop( $description ) ); ?></div> <?php endif; ?> </header><!-- .page-header --> <?php while ( have_posts() ) : ?> <?php the_post(); ?> <?php get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) ); ?> <?php endwhile; ?> <?php twenty_twenty_one_the_posts_navigation(); ?> <?php else : ?> <?php get_template_part( 'template-parts/content/content-none' ); ?> <?php endif; ?> <?php get_footer();
<?php if ( have_posts() ) {

    // Load posts loop.     while ( have_posts() ) {
        the_post();

        get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) );
    }

    // Previous/next page navigation.     twenty_twenty_one_the_posts_navigation();

} else {

    // If no content, include the "No posts found" template.     get_template_part( 'template-parts/content/content-none' );

}

get_footer();
Home | Imprint | This part of the site doesn't use cookies.