Guten Tag,
ich habe das Problem das auf Seiten wo ich das Kommentieren deaktiviert habe, "Comments are closed" angezeigt wird. Dies möchte ich auf den entsprechenden Seiten entfernen.
Weiß jemand wie das geht oder gibst dafür ein Plugin ?
page.php
PHP
<?php get_header(); ?>
<div id="content">
<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) -->
<div id="primarycontainer">
<div id="primarycontent">
<div id="contentarea"><!-- Primary content area start -->
<?php if ($posts) {
foreach($posts as $post)
{
start_wp();
?>
<div class="post" id="post-<?php the_ID(); ?>">
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
<div class="contentarea">
<p class="details"><span class="user"><?php the_author_posts_link() ?></span> <span class="date"><?php the_time('F jS, Y') ?></span> <?php edit_post_link('Edit'); ?></p>
<?php the_content('Continue Reading »'); ?>
<?php $sub_pages = wp_list_pages( 'sort_column=menu_order&depth=1&title_li=&echo=0&child_of=' . $id );?>
<?php if ($sub_pages <> "" ){?>
<p>This page has the following sub pages.</p>
<ul><?php echo $sub_pages; ?></ul>
<?php }?>
<ul class="controls">
<li class="comments"><?php comments_number('Comments(0)', 'Comments(1)', 'Comments(%)'); ?></li>
</ul>
</div>
</div>
<?php comments_template();?>
<?php
} /* end for "for-each" */
}/* end for "if posts" */
else
{
echo '<p>Sorry, No Posts matched your criteria.</p>';
}
?>
<p align="center"><?php posts_nav_link(' - ','« Prev','Next »') ?></p>
</div><!-- primarycontent end -->
</div><!-- primarycontainer end -->
</div><!--content end -->
<?php get_sidebar(); ?>
<?php get_footer();?>
Alles anzeigen
singel.php
PHP
<?php get_header(); ?>
<div id="content">
<!-- Primary content: Stuff that goes in the primary content column (by default, the left column) -->
<div id="primarycontainer">
<div id="primarycontent">
<div id="contentarea"><!-- Primary content area start -->
<?php if ($posts) {
foreach($posts as $post)
{
the_post();
?>
<div class="post" id="post-<?php the_ID(); ?>">
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
<div class="contentarea">
<p class="details"><span class="user"><?php the_author_posts_link() ?></span> <span class="date"><?php the_time('F jS, Y') ?></span></p>
<?php the_content('Continue Reading »'); ?>
<p class="post-tags">
<?php if (function_exists('the_tags')) the_tags('Tags: ', ', ', '<br/>'); ?>
</p>
<ul class="controls">
<li class="more"><?php the_category(' , ') ?> <?php edit_post_link('Edit'); ?></li>
<li class="comments"><?php comments_number('Comments(0)', 'Comments(1)', 'Comments(%)'); ?></li>
</ul>
</div>
</div>
<?php comments_template();?>
<?php
} /* end for "for-each" */
}/* end for "if posts" */
else
{
echo '<p>Sorry, No Posts matched your criteria.</p>';
}
?>
<p align="center"><?php posts_nav_link(' - ','« Prev','Next »') ?></p>
</div><!-- primarycontent end -->
</div><!-- primarycontainer end -->
</div><!--content end -->
<?php get_sidebar(); ?>
<?php get_footer();?>
Alles anzeigen
Vielen Dank im voraus für Hilfe.
Gruß
Arthuro