Bei einigen Blogeinträgen haben Sie es vielleicht schon gesehen, eine Autorenbeshreibung unter einem Blogartikel.
Das geht ganz einfach mit einem kleinen Code-Snippet in der Datei single.php.
Eingefügt wird es direkt unter dem Loop.
Das Styling wird dann mit CSS angepasst
Some blog entries you’ve probably seen an author description under a blog article.
This is very easy with a small snippet of code in the single.php file.
It is inserted directly under the loop.
<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?></p><br /><div class="author-info"><br /> <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'author_bio_avatar_size', 70 ) ); ?></p><br /><div class="author-description"><br /><h3><?php printf( __( 'Posted by %s', 'cozy_and_cuddly' ), "<a href='" . get_author_posts_url( get_the_author_meta( 'ID' ) ) . "' title='" . esc_attr( get_the_author() ) . "' rel='me'>" . get_the_author() . "</a>" ); ?></h3><br /><p><?php the_author_meta( 'description' ); ?></p><br /></p></div><br /><p><!-- end .author-description --><br /> </div><br /><p><!-- end .author-info --></p><br /><p> <?php endif; ?><br /><br />



frisch gebloggt: Autoreninfo in #wordpress anzeigen http://t.co/XmmCTjtt