Die comment.php wird im Loop aufgerufen, hier der inhalt der loop-single.php:
<?php
/**
* The loop that displays all single posts.
*
* The loop displays the posts and the post content. See
* http://codex.wordpress.org/The_Loop to understand it and
* http://codex.wordpress.org/Template_Tags to understand
* the tags used in it.
*
* This can be overridden in child themes with loop.php or
* loop-template.php, where 'template' is the loop context
* requested by a template. For example, loop-index.php would
* be used if it exists and we ask for the loop with:
* <code>get_template_part( 'loop', 'single' );</code>
*
* @audor Sebastian Preisner
* @subpackage Calyrium
* @version 0.1
*/
?>
<!-- Wenn ein Artikel forhanden ist -->
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="articleTitle">
<h2><?php the_title(); ?></h2>
</div><!-- #articleTitle -->
<div id="share">
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style"
addthis:url="<?php the_permalink() ?>"
addthis:title="<?php the_title(); ?>">
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4da5f3cd64c46aa6"></script>
<!-- AddThis Button END -->
</div> <!-- #share -->
<div class="hrTitle clear"></div>
<div class="beitragsInfo clear"><span>von <?php the_author_posts_link(); ?><?php the_date('l, j F, Y',', am ','.'); ?></span><span class="editieren"><?php edit_post_link('Editieren', ' ', ' '); ?></span> </div>
<div class="articleContent clear">
<?php the_post_thumbnail(); ?>
<!-- Einfügen des Contents -->
<?php the_content(); ?>
<?php wp_link_pages( array( 'Neuer' => '<div class="page-link">' . __( 'Seiten:', 'calyrium' ), 'Ältet' => '</div>' ) ); ?>
</div>
<?php showAuthorInfo(); ?>
<br />
<div class="subscribe clear">
<h4>Gefällt dir dieser Beitrag?</h4>
<p>Dann Hilf MTA-R.de bekannter zu werden und Teile den Artikel mit deinen Freunden und Kollegen.</p>
<?php get_template_part( 'addthis', 'bar' ); ?>
<?php // Aehnliche Artikel anzeigen
if (function_exists('showPostRelated')) {
showPostRelated($post,'3');
}
?>
</div>
<!-- include des Kommentarteils -->
<?php comments_template( '', true ); ?>
</div>
<?php endwhile; // end of the loop. ?>
Alles anzeigen
ein Link zum geschehen wäre http://www.mta-r.de, ich habe mir jetzt alles mehrfach angesehen und ich bin mehr oder minder am verzweifeln... ist mein erstes Theme das ich für WordPress mache, habe mich dabei jedoch an dem Buch WordPress Themes 3.0 und dem Wordpress Codex gehalten aber so einige dinge wollen nicht recht...