文章底部添加支付宝捐助按钮
废话不多说,直接上代码
//〈!--打赏代码start-->
echo '<form action="https://shenghuo.alipay.com/send/payment/fill.htm" method="POST" target="_blank" accept-charset="GBK" rel="nofollow" ><input name="optEmail" type="hidden" value="jxausea@gmail.com"><input name="payAmount" type="hidden" value="10"><input id="title" name="title" type="hidden" value="博客文章打赏"><input name="memo" type="hidden" value="看到您博客的文章《'.get_the_title().'》深受启发,小小意思不成敬意!"><input name="pay" type="image" value="打赏" src="http://www.liuhaihua.cn/wp-content/uploads/2015/09/my_alipay.png" title="打赏博主" height="37" width="159"> </form></span>';
//〈!--打赏代码end-->
将上面这段代码放在single.php 里面 在<?php the_content(); ?>后面就行最后效果见本文底部
正文到此结束