soithong
Member
Posted 4 years ago #
I use default and modify some thing to match my need.
I found that when I make post, it is ok with comment field at the end of post. But when I write the page , it has no comment box down there.
This is a post link.
http://www.muangthai.com/travel/?p=19
How do I put the comment box down ther at the Page ?
This is the page link.
http://www.muangthai.com/travel/?page_id=4
Thanks
Ich S.
Have you tries adding the following code inside the loop in "page.php"?
<?php comments_template(); ?>
soithong
Member
Posted 4 years ago #
Thanks, It seems work but the comment is not at the bottom of the page, it shows at the right side.
Please see this.
http://www.muangthai.com/travel/?page_id=4
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php get_sidebar(); ?>
<?php comments_template(); ?>
<?php get_footer(); ?>
soithong
Member
Posted 4 years ago #
Hi,
Work now I move it to...
<?php endwhile; endif; ?><?php comments_template(); ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Thanks again