已解决
公开

Tinection 模板怎么让游客不用登陆回复评论
回复别人的评论都是登录以回复

1 人关注这个问题

    1 答案

    公开

    看下这个23楼:
    将源文件中下面的代码:

    <?php if(is_user_logged_in()){comment_reply_link(array_merge( $args, array('reply_text' => __('回复','tinection'), 'add_below' =>$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'])));}else{echo '<a rel="nofollow" class="comment-reply-login user-login" href="javascript:" rel="nofollow">'.__('登录以回复','tinection').'</a>';} ?>

    改为下面这个:

    <?php comment_reply_link(array_merge( $args, array('reply_text' => __('回复','tinection'), 'add_below' =>$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?>
    #1
    1. 路过~~这样改了以后好像是登陆不能弹窗,添加 comment_registration 判断好像就可以了
    2. @隨之長風 这个不影响登录弹窗吧~ 这个 comment_registration 确实有用!赞

    来提交答案

    扫一扫二维码分享
    ×