I’ve gotten emails from people griping that my previous post about making a guestbook for their Wordpress blogs does not work for them. I’m making up for that lame post right now!
Ok, I am writing this post under the assumption that:
- You have FTP access to your web server containing your Wordpress installation.
- You have admin access to the blog you’re making a guestbook for.
- You know basic HTML editing.
- You can tell the difference between regular text, HTML and PHP variables.
1. The very first thing to do is open up your theme folder saved in your computer. Look for the file named “single.php”.

2. Copy (Ctrl-C) the file and Paste it (Ctrl-V). The file will automatically be named “Copy of single.php”. Rename the file to “guestbook.php”.

3. Open up guestbook.php in your favorite text editor (e.g. Notepad, UltraEdit).
On top of the file, right before:
<?php get_header(); ?>
Add:
<?php
/*
Template Name: Guestbook
*/
?>
Save the file (Ctrl-S). What we just did is create a separate template for your guestbook, which we will use when we create the new page. Customize other portions of the file as needed.
4. Open up your FTP program. Change directory to your current theme folder.
Ex. blogdomain.com/wp-content/themes/theme_name/
5. Upload guestbook.php.
6. Access your Wordress admin panel to Write > Page to create a new page.

Type “Guestbook” as the page title. Compose a brief introduction for the page content.
Ex. Please Sign My Guestbook!
7. On the right-hand side, pick Guestbook as the page template.

8. Save the page. If you don’t want your guestbook to display the post date, browse to Presentation > Theme Editor > guestbook.php
Look for:
<?php the_time('Y/m/d') ?>
And delete it. Click Update File to save.
9. If you want to change the way the guestbook entries and the input form appear, here’s how. Copy comments.php and save it as ‘guestcomments.php’. Edit the file to your liking. Some samples:
Change the comment heading “X comments” to “X guestbook entries”
Change the submit button text “Post Comment” to “Sign Guestbook” or “Sign It!”
Change “Your comment is awaiting moderation” to “Your guestbook entry is awaiting moderation”
Text may differ from to template to template, so look for approximate matches in your files.
To reverse the order of comments, look for:
foreach ($comments as $comment)
and replace with:
foreach (array_reverse($comments) as $comment)
Upload guestcomments.php to the current theme folder on the server.
10. Once again, open up guestbook.php in the Theme Editor. Scroll below and change the line:
<?php comments_template(); ?>
to
<?php comments_template('/guestcomments.php'); ?>
Voila! You now have a guestbook!
I tried my best to make these instructions as painless as possible. If you’re still having issues, please don’t hesitate to leave me a note. Enjoy your new guestbook.
If you ‘dugg’ this article, click here to digg it!
Update: Wordpress Generator Plugin is a sparkly new plugin that does all the dirty work for you!
Bookmark at:StumbleUpon | Digg | Del.icio.us | Dzone | Newsvine | Spurl | Simpy | Furl | Reddit | Yahoo! MyWeb





June 13th, 2006 at 6:10 am
Nice site! Color scheme no bad… Add spam protect and be happy ! Happy code =619
June 17th, 2006 at 7:09 pm
ei! can you help me as to how to customize the guestbook page above to display another word instead of the word “Comment >>” and change the title of the submit button from “Submit comment” to any other name? please? Thanks in advance!
June 18th, 2006 at 8:05 am
Hi Jan, check out the updated instructions to achieve what you wanted.
June 19th, 2006 at 4:18 pm
Thanks andrew! I think I missed out on that part of the instructions..ü
June 20th, 2006 at 12:36 am
Np Jan! That part was added recently because of your request.
July 1st, 2006 at 7:30 pm
[...] kaynak : >.< [...]
July 5th, 2006 at 1:01 am
thx for the instructions
August 8th, 2006 at 6:38 am
Omg, this wast exactly what I was looking for, thanks a lot!
September 18th, 2006 at 7:29 pm
[...] 主要是通过WP的创建页面来设置,详细可以参考这篇Blog, 找到不同主题下的各个留言簿模板。 [...]
September 24th, 2006 at 10:48 pm
[...] With WordPress, this could actually be done quite easily by creating a page using a template particularly modified to support commenting (as illustrated here). But if you don’t have time to tweak, you can try the Guestbook Generator plugin from Alleba.com Features: [...]
September 27th, 2006 at 12:23 pm
sdadasdasdasdas
October 19th, 2006 at 7:00 am
The guestbook generator plugin doesn’t work for my almost spring theme,so I have to follow these structions to create a guestbook,I wonder if I want the comments arranged from newest to oldest,how should I do?
October 20th, 2006 at 6:08 am
Andrew,thanks very much,I followed the step and the problem is solved.
October 27th, 2006 at 3:15 am
I have been reading your guest book from the beginning, page or two a day. Often I have the energy to read and enjoy, but not write (it is difficult to explain emotions). I like the comments in different languages, even though I can read English well, and Spanish a little, and can just understand some of the words in Italian and Japanese.
————— http://www.phitsanulok.go.th/ngclink/index.html —————–
October 28th, 2006 at 6:33 am
I got it work! Thank you very much!
November 9th, 2006 at 11:19 am
looked very nice, but i think my theme doesn´t support the generator.
it says:
“The required template files were not found in your current theme. Guestbook cannot be generated.”
thnx anyway, mate
greetz mike
November 22nd, 2006 at 7:30 pm
Running from default theme: you can apparently switch off the plugins after creating the guestbook. Running the plugin again will create a new page.
December 6th, 2006 at 12:24 pm
Hi I tried to generate the guestbook but I got the following message
“The required template files were not found in your current theme. Guestbook cannot be generated.”
I wanted to copy single.php as you instructed but I can’t find it. I am using the theme “Sky3c by Kaushal Sheth” and wordpress 2.0.4
Any ideas?
Thanks
Y
December 6th, 2006 at 1:25 pm
I finally realized I could copy the index.php and then rename it, this solved the problem
However the guest book page has “Please sign my Guestbook. Thanks!”, with no link so I don’t understand how to post a comment. I think my initial theme was modified to remove the comments… any ideas ?
thanks Y
January 10th, 2007 at 11:45 am
It also said that I was missing the “single.php” file, but Y’s solution worked just fine. I was just wondering if it’s possible to remove the numbering of the comments/entries. Or to turn them around, so that the latest entry get’s the highest entry-number.
March 20th, 2007 at 9:53 am
Feed for this Entry did not work in the newest k2 revision 291
March 24th, 2007 at 3:11 pm
Hello Andrew,
I have followed the instructions on your site, but my comments aren’t displayed. I lookerd everywhere but can’t find what’s wrong. Could you please have a look at my site and tell me what to do? You have to click at “Alle reacties”, that’s the page I added.
Thanks for your help.
Kind regards,
Marcel
April 29th, 2007 at 8:04 am
Hello!
Does not exist a way to allow the amount of signatures of guestbook when visualized the page of guestbook? Thanks!
May 24th, 2007 at 1:31 pm
Hi!
When they wrote a comment to my guestbook, and sign the required mail and name. it comes back with error that says it was a wrong email-adress. i can’t figure out why?
July 24th, 2007 at 2:54 am
can you help me as to how to customize the guestbook page above to display another word instead of the word “Comment >>” and change the title of the submit button from “Submit comment” to any other name? please? Thanks in advance! help~!
September 3rd, 2007 at 7:40 pm
Overall this has been great, since the Guestbook Generator plugin did not work for my theme. But I’m also stumped at changing the text that says things like “Leave a Reply” and the Submit Button… the file looks to have the text I want but doesnt display??
here is my guestbook, thanks to you!
http://www.jeelago.net/work/guestbook/
October 5th, 2007 at 7:08 am
I have received this error. Any help will be greatly appreciated.
“Fatal error: Call to a member function on a non-object in …./guestcomments.php on line 51″
February 7th, 2008 at 8:32 am
[...] How to Create a Wordpress Guestbook Reloaded Wordpress Guestbook Generator Plugin [...]
February 12th, 2008 at 6:57 pm
Hi Andrew, great instructions, thanks.
I’m not (yet) using this on my public blog but I am on a non-public blog I author and it works really well.
April 13th, 2008 at 7:36 am
[...] alleba blog>>How to Create a Wordpress Guestbook Reloaded“ You can follow any responses to this entry through the RSS 2.0 feed. You can leave a [...]
April 20th, 2008 at 6:03 pm
[...] tradotto da: How to Create a Wordpress Guestbook Reloaded). Ti è piaciuto l’articolo? Vota Ok oppure No. Grazie Mille! Puoi votare l’articolo anche [...]
April 26th, 2008 at 6:42 am
[...] 本文翻译修改自”alleba blog>>How to Create a Wordpress Guestbook Reloaded [...]
July 6th, 2008 at 4:49 pm
[...] Orjinal metin : http://www.alleba.com/blog/2006 Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]
July 14th, 2008 at 8:02 pm
Ahm… is there any codes for registration for the viewers together with their comments?
July 25th, 2008 at 3:20 pm
Great guestbook, thxs!
very easy, but i have one question. I don’t want the comments to be approved by the moderator, but they have to be approved automaticly, so they appear at the same time on my website. Without any controle. How can create that? please help
December 11th, 2008 at 11:12 pm
[...] 本文翻译修改自”alleba blog>>How to Create a Wordpress Guestbook Reloaded“ [...]
January 31st, 2009 at 5:40 pm
Hey, is it possible that you can help me with my Guestbook? It’s not working for me!
Please contact me by e-mail.
Thanks
February 4th, 2009 at 6:30 pm
Well it doesn’t work for me… When I open comments.php there is only this text:
How can I change this to how I want it?
February 9th, 2009 at 8:31 am
[...] 本文翻译修改自”alleba blog>>How to Create a Wordpress Guestbook Reloaded“ [...]
February 16th, 2009 at 3:14 am
With that simple tutorial make is so easy for us to make. Thanks for the instructions.
February 25th, 2009 at 7:17 pm
[...] Via alleba.com [...]
March 15th, 2009 at 8:19 am
[...] 本文翻译修改自”alleba blog>>How to Create a Wordpress Guestbook Reloaded“ [...]
June 17th, 2009 at 10:12 pm
Brilliant!
This way you have total control over how it will look in the end…I really like this tutorial!
June 19th, 2009 at 4:40 am
[...] 按照网上搜索得来的方法:随便说说|BSTalk:简单5步,制作wordpress留言板(2007年6月16日) 这篇文章是翻译和修改自:Alleba Blog 的 How to Create a Wordpress Guestbook Reloaded (2006年6月9日) [...]
October 9th, 2009 at 12:18 am
[...] 本文翻译修改自”alleba blog>>How to Create a Wordpress Guestbook Reloaded“ [...]
November 8th, 2009 at 11:38 am
[...] tradotto da: How to Create a Wordpress Guestbook Reloaded) Categorie:wordpress Tag: guestbook, tutorial, wordpress, XHTML Articoli similiCome creare un [...]
January 2nd, 2010 at 7:15 pm
Hi there,
I use your guest book plug-in and is working fine. The only problem is pagination. On my guest book, comments are approaching 150+, i want it to be like 20 0r 25 per page. How to do it ? Your input is much appreciated.
url: http://www.mitixa.com/guestbook
January 16th, 2010 at 2:04 pm
Hi Everybody there,
Some template have a “page.php” file along with a “single.php”. So if Guestbook Reloaded seems to not work with your template, search for “page.php” in your template folder and apply same modifications. I mean you should duplicate “page.php” instead of “single.php” and It should work perfect.
(Wordpress 2.9.1, ok !)
January 16th, 2010 at 2:06 pm
I just forgot to say :
Thanks Andrew for this tuto !
January 19th, 2010 at 10:05 am
[...] 本文BY**翻译修改自”alleba blog>>How to Create a Wordpress Guestbook Reloaded“ 发表评论 | Trackback 2010年1月20日 | 归档于 WordPress 标签: « 日本网店介绍之KENKO营养品销售网站. 本文目前尚无任何评论. [...]