in dem Template das ich erstellt habe sieht alles super aus nur die Kommentarfunktion also der Link zu der Kommentarfunktion (<?php comments_popup_link('0 Kommentare »', '1 Kommentar »', '% Kommentare »'); ?>) wird überhaupt nicht angezeigt .... und ich verzweifel daran ... evtl. hat ja jemand eine Idde woran es liegen könnte hier ist der Quellcode
(Ich hoffe das passt hier ins forum bin ein foren neuling) :oops:
PHP
<?php
/*
Template Name: Neus3
*/
?>
<?php get_header();?>
<div id="content">
<div id="latest-post">
<div class="story">
<?php $top_query = new WP_Query('cat=3&showposts=5'); ?>
<?php if (have_posts()) : ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('j. F Y') ?> <!-- von <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Den ganzen Beitrag lesen »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Kategorie <?php the_category(', ') ?> <strong>|</strong> <?php comments_popup_link('0 Kommentare »', '1 Kommentar »', '% Kommentare »'); ?> <?php edit_post_link('Bearbeiten','<strong>|</strong> ',''); ?> </p>
<div class="meta">
<p><?php edit_post_link(__('Bearbeiten')); ?></p>
</div>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Vorherige Einträge') ?></div>
<div class="alignright"><?php previous_posts_link('Nächste Einträge »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Nicht gefunden</h2>
<p class="center">Sorry, aber du suchst gerade nach etwas, was hier nicht ist.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<!-- end #posts -->
<div class="info">
<?php get_sidebar();?>
</div>
<div class="clear"></div>
</div>
<!-- end #latest-post -->
<?php get_footer();?>
Alles anzeigen