• Resolved ArielZusya

    (@arielzusya)


    I originally posted this on the end of an old but similar thread but I don’t think it was noticed there so I thought I would try again with its own thread. I’d love a hand with this. I have used the admin tool to create a series of pages. One of those pages is a “guestbook” and following the instructions on geeksmakemehot.com 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) and created the page with “Allow Comments” checked. The trouble is the “post” on the page I created (the guestbook page – https://www.ariellovesdana.com/wordpress/?page_id=26) doesn’t show up like the post on the main page (www.ariellovesdana.com/wordpress/) but instead just appears as a string of text. Even with the comments_popup_link() I don’t get a link under my “post” to comment. 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’, ‘ a€?? ‘, ”); ?>
    </div>
    <?php endwhile; endif; ?>
    </div>
    </div>
    <?php get_footer(); ?>

    Thanks for any help you can offer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • My guess is you are missing this
    <?php comments_template(); // Get wp-comments.php template ?>
    which usually isn’t in the page.php templates.

    Edit. Put in in between the Edit link and the following closing div.

    Thread Starter ArielZusya

    (@arielzusya)

    Wow… something so simple and yet so effective! Thanks! That did it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘help with comments on “pages” created in the WP admin tools.’ is closed to new replies.