Подскажите по форме комментариев Wordpress

K1
На сайте с 21.02.2011
Offline
100
792

WordPress 3.0.4

Шаблон к нему Rustic Portrait 1.01.1 от TemplateLite.com

http://www.templatelite.com/?s=rustic

Проблема шаблона для меня (в шаблоне может так задумано, но меня так не устраивает):

На так называемой одиночной странице (page.php) блога "под этим шаблоном" форма комментариев есть:

http://demo.templatelite.com/?p=51

А на обычной-стандартной странице (single.php) http://demo.templatelite.com/?page_id=11 нет формы

А мне нужна там форма комментов тоже

---

Код single.php

<?php get_header(); ?>

<div id="content">
<div class="spacer"></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
<div class="post_top">
<h1 class="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<div class="post_date">
<div class="post_date_d"><?php the_time('d');?></div>
<div class="post_date_m"><?php the_time('F');?></div>
</div>
</div>
<div class="post_author"><?php the_author_posts_link('nickname'); ?> <?php edit_post_link(' &raquo; Edit &laquo;',' &bull; ',''); ?></div>
<div class="entry">
<?php the_content('more...'); ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<div><strong><center>Pages: ', 'after' => '</center></strong></div>', 'next_or_number' => 'number')); ?>
</div>
<div class="clear"></div>
<div class="info">
<span class="category">Category: <?php the_category(', ') ?></span>
<?php the_tags('&nbsp;<span class="tags">Tags: ', ', ', '</span>'); ?>
</div>
</div>


<div id="postmetadata">
You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php }elseif(!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php }elseif(('open' == $post-> comment_status) && !('open' == $post->ping_status)){ // Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php }
edit_post_link('Edit this entry.','','');
?>
</div>
<?php
comments_template();
?>
<?php
endwhile;
?>

<div class="navigation">
<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
</div>
<?php
else : ?>
<h1 class="archivetitle">Not found</h1>
<p class="sorry">"Sorry, but you are looking for something that isn't here. Try something else.</p>
<?php
endif;
?>

</div>
<?php get_sidebar(); ?>
<?php get_footer();?>

---

Код page.php:

<?php get_header(); 

$tmp_PagesComment=0; //set to 1 to show comment on pages
?>
<div id="content">
<div class="spacer"></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
<div class="post_top page_top">
<h1 class="post_title page_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</div>
<div class="entry">
<?php the_content('more...'); ?><div class="clear"></div>
<?php wp_link_pages(array('before' => '<div><strong><center>Pages: ', 'after' => '</center></strong></div>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>

<?php if($tmp_PagesComment==1):?>
<div id="postmetadata">
You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php }elseif(!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php }elseif(('open' == $post-> comment_status) && !('open' == $post->ping_status)){ // Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.
<?php }
edit_post_link('Edit this entry.','','');
?>
</div>
<?php comments_template();?>
<?php endif;?>

<?php
endwhile;
endif;
?>

</div>
<?php get_sidebar(); ?>
<?php get_footer();?>

Где, что подправить и изменить, чтобы решить эту проблему ?

Очень нужна форма комментов везде =)

Заранее спасибо тем, кто подскажет

:)

123

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий