制作WP留言页面的几种方法
现在wordpress2.62版本已经出来了,但是留言页面的功能依然需要自己去制作,本人新玩wp,网上看到了几种制作留言页面的方法,可以根据不同的需求或不同的模板任意选择,但并不能每个方法对每个模板都能生效,请自己尝试!
一、使用插件:
<!–gb_contact_form–>。需要注意的是,需要在HTML样式下加上,而不是在可视化的情况下加;具体的办法点此查看
二、利用WordPress自定义字段调用评论功能
其实有个非常简单的方法,可以一步制作一个留言板。重点就在你的page.php中的下面这段代码:
<?php if ( get_post_custom_values(’comments‘) ) comments_template() ?>
当然,并不是所有的wordpress主题都带有这样的一句代码。如果没有,那么加上去吧,如果你只是直接利用来调用的话,那么麻烦的事就来了,你要为此多写一个页面模板,因为其他页面会显示同样的内容。这并不是你希望的吧,并且大多数人并不知道如何制作一个留言板。<?php comments_template(); ?>
所以,最好的办法,就是利用WordPress的自定义字段(所谓的Custom File)功能。你需要做的是进入后台–>Write a page,并按照图片的内容,进行填写即可.

三、制作页面模板
以默认外观为基准:
1.到默认外观目录下,复制single.php文件,并改名为guestbook.php;
2.打开guestbook.php文件,在
下面,添加代码:
<?php
/*
Template Name: GuestBook
*/
?>
保存.
3.添加一个页面,页面模板选guestbook.php,保存
4.复制comments.php文件,并改名为guestcomments.php;
5.打开guestbook.php文件,修改
<?php comments_template();?>
为
<?php comments_template(’/guestcomments.php’);?>


















acquistare cialis generico
buy differin
coming off prednisone
norvasc 10 mg
genuine viagra without prescription
http://bestvaliumprice.baidu.ws/ selling valium phiulippines
alcohol and zoloft overdose
ultram er 300 mg
flagyl alcohol dui
does ambion cr have valium
http://ychepic.communityhost.de/ amoxicillin augmentin buy
http://buysrrc.communityhost.de/ zoloft 25mg
http://bpriccv.communityhost.de/ how many days can u get ambien early
http://infofms.esforos.com/ ativan ativan drug
http://sxdoses.esforos.com/ cialis generic
http://pharmta.esforos.com/ flagyl dose
fluoxitine and valium
http://norprices.55fast.com/abuy-cheap-ambien-on-line.html buy ambien online without rx
http://gleffcku.1-2-3host.com/axanax.html xanax 2mg picture
http://onlindbrt.hostaim.com/abenefits-of-retin-a.html retin ox serum
Reply