get_footer example

get_header( 'embed' );

if ( have_posts() ) :
    while ( have_posts() ) :
        the_post();
        get_template_part( 'embed', 'content' );
    endwhile;
else :
    get_template_part( 'embed', '404' );
endif;

get_footer( 'embed' );
<?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();
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 esc_html_e( 'Nothing here', 'twentytwentyone' ); ?></h1> </header><!-- .page-header --> <div class="error-404 not-found default-max-width"> <div class="page-content"> <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentytwentyone' ); ?></p> <?php get_search_form(); ?> </div><!-- .page-content --> </div><!-- .error-404 --> <?php get_footer();
// 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();
<?php /** * Fires after the sign-up forms, before wp_footer. * * @since 3.0.0 */
do_action( 'after_signup_form' );
?> <?php get_footer( 'wp-signup' );
/* Start the Loop */
while ( have_posts() ) :
    the_post();
    get_template_part( 'template-parts/content/content-page' );

    // If comments are open or there is at least one comment, load up the comment template.     if ( comments_open() || get_comments_number() ) {
        comments_template();
    }
endwhile; // End of the loop.
get_footer();

                ?> </p> <?php                 endif;
        }
    }
    ?> </div> </div> <?php get_footer( 'wp-activate' );
$twentytwentyone_next_label     = esc_html__( 'Next post', 'twentytwentyone' );
    $twentytwentyone_previous_label = esc_html__( 'Previous post', 'twentytwentyone' );

    the_post_navigation(
        array(
            'next_text' => '<p class="meta-nav">' . $twentytwentyone_next_label . $twentytwentyone_next . '</p><p class="post-title">%title</p>',
            'prev_text' => '<p class="meta-nav">' . $twentytwentyone_prev . $twentytwentyone_previous_label . '</p><p class="post-title">%title</p>',
        )
    );
endwhile; // End of the loop.
get_footer();

            ?> </footer><!-- .entry-footer --> </article><!-- #post-<?php the_ID(); ?> --> <?php     // If comments are open or there is at least one comment, load up the comment template.     if ( comments_open() || get_comments_number() ) {
        comments_template();
    }
} // End the loop.
get_footer();
Home | Imprint | This part of the site doesn't use cookies.