相关疑难解决方法(0)

Wordpress 评论回复链接不出现

我正在使用自定义代码来打印评论,但问题是无论我做什么,我都无法在任何评论下打印评论回复链接....

这是代码

    <?php // Do not delete these lines
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
        die ('Please do not load this page directly. Thanks!');

    if (!empty($post->post_password)) { // if there's a password
        if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {  // and it doesn't match the cookie
            ?>

            <p class="nocomments">This post is password protected. Enter the password to view comments.</p>

            <?php
            return;
        }
    }

    /* This variable is for alternating comment background */
    /*$oddcomment = 'class="alt" ';*/
    $oddcomment = 'alt';
?> …
Run Code Online (Sandbox Code Playgroud)

wordpress comments

4
推荐指数
2
解决办法
1万
查看次数

标签 统计

comments ×1

wordpress ×1