• [ Moderator note: moved to Fixing WordPress. ]

    Hallo,
    ich m?chte gerne ein Image und den Publisher in die Author.php einfügen. Leider weiss ich nicht den Code dafür, deshalb stell ich hier die Frage.
    Sehr nett w?re das dann auch noch, wenn ich die Info bekommen würde an welcher Stelle ich den Code einfügen müsste. Schon mal ein dickes Dankesch?n im Voraus dafür.

Viewing 1 replies (of 1 total)
  • Thread Starter sandra20

    (@sandra20)

    Entschuldigung, das ist dann ein Ausschnitt der author.php.

    <header class="page-header clearfix">
    				<?php do_action( 'generate_before_archive_title' ); ?>
    				<h1 class="page-title">
    					<?php
    						if ( is_author() ) :
    							/* Queue the first post, that way we know
    							 * what author we're dealing with (if that is the case).
    							*/
    							the_post();
    							echo get_avatar( get_the_author_meta( 'ID' ), 75 );
    							printf( __( 'About %s', 'generate' ), '<span class="vcard">' . get_the_author() . '</span>' );
    							/* Since we called the_post() above, we need to
    							 * rewind the loop back to the beginning that way
    							 * we can run the loop properly, in full.
    							 */
    							rewind_posts();
    
    						endif;
    					?>
    				</h1>
    				<?php do_action( 'generate_after_archive_title' ); ?>
    				<?php
    					if ( get_the_author_meta('description') && is_author() ) : // If a user has filled out their decscription show a bio on their entries
    						echo '<div class="author-info">' . get_the_author_meta('description') . '</div>';
    					endif;
    				?>
    				<?php do_action( 'generate_after_archive_description' ); ?>
    			</header><!-- .page-header -->
    
    			<?php /* Start the Loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php
    					/* 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( 'content', get_post_format() );
    				?>
    
    			<?php endwhile; ?>
    
    			<?php generate_content_nav( 'nav-below' ); ?>
    
    		<?php else : ?>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Image und Publsher in author.php integrieren’ is closed to new replies.