Hallo,
https://vip.wordpress.com/documentation/…nto-your-theme/ sagt:
ZitatWordPress offers template tags like the_author() and the_author_posts_link() to display byline information associated with each post post. You might see these inside files like single.php and author.php
Es ist ColorMag 1.0 als Theme eingerichtet.
Nun, autor.php gibt es nicht und in single.php habe ich keine Idee, wo das hingehört:
PHP
<?php/**
* Theme Single Post Section for our theme.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
?>
<?php get_header(); ?>
<?php do_action( 'colormag_before_body_content' ); ?>
<div id="primary">
<div id="content" class="clearfix">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php endwhile; ?>
</div><!-- #content -->
<?php get_template_part( 'navigation', 'single' ); ?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-box">
<div class="author-img"><?php echo get_avatar( get_the_author_meta( 'user_email' ), '100' ); ?></div>
<h4 class="author-name"><?php the_author_meta( 'display_name' ); ?></h4>
<p class="author-description"><?php the_author_meta( 'description' ); ?></p>
</div>
<?php endif; ?>
<?php if ( get_theme_mod( 'colormag_related_posts_activate', 0 ) == 1 )
get_template_part( 'inc/related-posts' );
?>
<?php
do_action( 'colormag_before_comments_template' );
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
do_action ( 'colormag_after_comments_template' );
?>
</div><!-- #primary -->
<?php colormag_sidebar_select(); ?>
<?php do_action( 'colormag_after_body_content' ); ?>
<?php get_footer(); ?>
Alles anzeigen
Kann mir da jemand helfen?
Es gibt als Dateien:
Templates
- 404-Template
[COLOR=#666666](404.php)[/COLOR] - [COLOR=#000000]Archive
[COLOR=#666666](archive.php)[/COLOR][/COLOR] - Kommentare
[COLOR=#666666](comments.php)[/COLOR] - content-page.php
- content-single.php
- content.php
- Theme Footer
[COLOR=#666666](footer.php)[/COLOR] - front-page.php
- Theme-Funktionen
[COLOR=#666666](functions.php)[/COLOR] - Theme Header
[COLOR=#666666](header.php)[/COLOR] - custom-header.php
[COLOR=#666666](inc/custom-header.php)[/COLOR] - customizer.php
[COLOR=#666666](inc/customizer.php)[/COLOR] - functions.php
[COLOR=#666666](inc/functions.php)[/COLOR] - header-functions.php
[COLOR=#666666](inc/header-functions.php)[/COLOR] - post-formats.php
[COLOR=#666666](inc/post-formats.php)[/COLOR] - related-posts.php
[COLOR=#666666](inc/related-posts.php)[/COLOR] - Hauptindex-Template
[COLOR=#666666](index.php)[/COLOR] - navigation.php
- no-results.php
- Contact Page Template Seitentemplate
[COLOR=#666666](page-templates/contact.php)[/COLOR] - Seiten-Template
[COLOR=#666666](page.php)[/COLOR] - Suchergebnisse
[COLOR=#666666](search.php)[/COLOR] - Suchformular
[COLOR=#666666](searchform.php)[/COLOR] - sidebar-footer.php
- sidebar-left.php
- Seitenleiste
[COLOR=#666666](sidebar.php)[/COLOR] - Einzelner Beitrag
[COLOR=#666666](single.php)[/COLOR]
Stylesheets
- Stylesheet
[COLOR=#666666](style.css)[/COLOR]
Grüße
VCR