Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Teil 4 der author.php
<?php
/*
* Weil wir oben bereits the_post() genutzt haben, müssen wir die Loop neu starten mit rewind_posts(),
* damit wir alle Beiträge durch die neue Loop einfangen können.
*
*/
rewind_posts();
// Start the Loop.
while ( have_posts() ) : the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*
* Die richtige Format-Spezifische Vorlage laden, hier wird die content.php geladen
*/
get_template_part( 'content' );
endwhile;
// Die Seiten-Navigation laden
the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
'next_text' => __( 'Next page', 'twentyfifteen' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
) );
?>
</main><!-- .site-main -->
</section><!-- .content-area -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.