代码部署
在单独页面中找到评论的代码,放到友情链接页面 </main>
前面就可以了。代码如下:
- <?php while ( have_posts() ) : the_post(); ?>
- <?php if ( comments_open() || get_comments_number() ) : ?>
- <?php comments_template( '', true ); ?>
- <?php endif; ?>
- <?php endwhile; ?>
同理,也可以给其他页面添加评论。
不要问我这个代码正不正确,其实我也不知道,只是知道放进去有用。虽然不懂这个PHP代码,但是大概是知道这是调用评论的。
- 我的微信
- 微信扫一扫
-
- 我的微博
- 微博扫一扫
-
评论