Getting comments so I can get a Guestbook
-
I know I can use a page, but why do it the easy way.
I set up a template for a page called Guestbook then copied over the code from the index file and every thing went great. Then I duplicated the comments.php and called it commentsx.php. I replaced <?php comments_template(); ?> with <?php include (TEMPLATEPATH . ‘/commentsx.php’); ?>, but for some reason the code won’t work. I get the form but no comments, what’s so special about the comments.php code that it only works when called using the <?php comments_template(); ?>. I get the same unhappy ending even if I paste the code into my guestbook.php.
I also tried to add
- Comment by <?php comment_author(); ?>:
<?php comment_text(); ?>
into the guestbook.php but that didn’t work also. I’m sure I got it within the loop.
I don’t know what I’m missing here, what I want is to have the submit form on top of comments for the Guestbook page.
- Comment by <?php comment_author(); ?>:
- The topic ‘Getting comments so I can get a Guestbook’ is closed to new replies.