前面给大家介绍了《wordpress/501084.html" target="_blank">wordpress主题制作全过程(九):制作single.php》,本文继续给大家介绍如何制作comments.php,下面一起来看一下吧~
今天我们来制作评论主题的评论模块。在主题目录Aurelius下新建comments.php,在single.php剪切以下代码,粘贴到comments.php:
<h3>Comments</h3> <div> </div> <ol> <li> <div> @@##@@ <a>Reply</a> </div> <div> <div> <cite><a>Joe Bloggs</a></cite> <div>January 6, 2010 at 6:26 am</div> </div> <div> <p>Donec leo. Aliquam risus elit, luctus vel, interdum vitae, malesuada eget, elit. Nulla vitae ipsum. Donec ligula ante, bibendum sit amet, elementum quis, viverra eu, ante. Fusce tincidunt. Mauris pellentesque, arcu eget feugiat accumsan, ipsum mi molestie orci, ut pulvinar sapien lorem nec dui.</p> </div> </div> </li> </ol><div> </div>登录后复制
本文地址:http://yunji1.cn