• Any links to comments part of the page are broken unless you override get_comments_link to replace #comments with #disqus_thread.

    I added this to my functions.php, however, I think it should be part of the plugin..

    function disqus_comments_link($comments_link, $post_id)
    {
       return(preg_replace('/#comments$/','#disqus_thread',$comments_link));
    }
    add_action( 'get_comments_link', disqus_comments_link, 10,2);

    https://ww.wp.xz.cn/plugins/disqus-comment-system/

The topic ‘get_comments_link should replace #comments with #disqus_thread’ is closed to new replies.