• I use WP to write pages for my site. In one of my themes here: http://exquisite.lusciouzly.net/blog/ (the anthurium mix one) it shows the ‘post reply’ thing to a page, while on the ocadia theme it doesn’t. Does anyone know how I can put the post reply thing to the ocadia theme too, since the anthurium theme doesnt have a page.php file.

Viewing 4 replies - 1 through 4 (of 4 total)
  • On the Admin > Write Page (or edit Pages), at the top, just like in the Write Posts) there is a box next to the title that allows you to check the “allow pings” and “allow comments”. Click “allow comments” and it should show the comments on that page.

    That’s only half of the truth… If a theme has a page.php template file that doesn’t have the call for the commments.php template, you can click as much as you want – the Pages still won’t have comments!

    Katrina, check the ocadia theme’s page.php template, if the Loop doesn’t call for the comments template, then compare the code from the index.php and include this in page.php template:
    <?php comments_template(); ?>

    Edit. The Pages were introduced in WP1.5 because eralier there have been a lot of requests to be able to have an “aboutme” page or a CV page and alike. So by default the page.php templates usually do not have call for the comments template, since we don’t really want people to comment on our biography, for example. However, themes that don’t have page.php template will fall back to the index.php to display Pages (see Template Hierarchy in Codex). That’s why in Anthurium you have comments on Pages.

    I’d love a hand with this as well. I too have used the admin tool to create a series of pages. One of those pages is a “guestbook” and I wrote a template that is similar to page.php but adds in the loop for comments (or at least I think I have that right). The trouble is the “post” on the page I created (the guestbook page – http://www.ariellovesdana.com/wordpress/?page_id=26) doesn’t show up like the post on the main page (www.ariellovesdana.com/wordpress/). What am I missing? What I was hoping to do was to create this guestbook page and have it take comments. Incidentally, here’s the template I created for this little project:

    <?php
    /*
    Template Name: Guestbook
    */
    ?>
    <?php get_header(); ?>
    <div id=”noticias”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”entrada”>
    <h2 id=”post-<?php the_ID(); ?>”>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
    <?php the_title(); ?>

    </h2>
    <small>
    <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?>
    </small>
    <?php the_content(“Continue reading “.the_title(”, ”, false).”…”); ?>
    <div class=”feedback”>
    <?php link_pages(‘Pages: ‘, ”, ‘number’); ?>
    <?php edit_post_link(‘Edit’, ‘ — ‘, ”); ?>
    </div>
    <?php endwhile; endif; ?>
    </div>
    </div>
    <?php get_footer(); ?>

    Thanks for any help you can offer!

    It seems like a bug to me, that page.php doesn’t include the call to the comments template. If you can specify that you want to allow pings and comments on a page, then the *default* template provided with WP should display the comments, no?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Commenting on WP written Pages’ is closed to new replies.