Viewing 6 replies - 1 through 6 (of 6 total)
  • You can open the file named page.php and add the following code after the loop: <?php comments_template(); // Get wp-comments.php template ?>. You may need to mov it around a few times depending on where you need it to display.

    Thread Starter infinityvers

    (@infinityvers)

    Thank you for your help. But where is the loop?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The Loop is a special sort of WordPress thing. It’s something that is in all templates.

    Thread Starter infinityvers

    (@infinityvers)

    <?php get_header(); ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h1><?php the_title(); ?></h1>

    <div class=”descr”><?php the_time(‘F jS, Y’) ?> by <?php the_author() ?></div>

    <div class=”entry”>

    <?php the_content(‘Read the rest of this entry »’); ?>

    </div>

    </div>

    <?php endwhile; ?>

    <?php else : ?>

    <h2 align=”center”>Not Found</h2>

    <p align=”center”>Sorry, but you are looking for something that isn’t here.</p>

    <?php endif; ?>
    </div>

    <?php get_sidebar(); ?>

    <div class=”clearer”> </div>

    </div>

    <?php get_footer(); ?>

    Thank you, but where is the loop, where should I insert the code?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Sigh… Couldn’t you have just read the actual documentation I pointed you to? Then you would understand and not have to ask again.

    Fine. It’s after the <?php endwhile; ?>. That’s the end of the Loop.

    Thread Starter infinityvers

    (@infinityvers)

    I’m really sorry.
    Thank you, I did insert the code and it’s fine.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Need to allow comments on Pages’ is closed to new replies.