Support » Plugin: Better Recent Comments » how remove pagination /comment-page-2/

  • Resolved psina

    (@aklimatizirovanie_raki_v_atake)


    how remove pagination:

    postname/comment-page-2/#comments-33

    need:

    postname/#comments-33

    • This topic was modified 1 year, 3 months ago by psina.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andy Keith

    (@andykeith)

    Hi,

    We use the get_comment_link() function in WordPress core to retrieve the link, so that would be where to look. I think there’s a get_comment_link filter you could use.

    • This reply was modified 1 year, 3 months ago by Andy Keith.
    • This reply was modified 1 year, 3 months ago by Andy Keith.
    psina

    (@aklimatizirovanie_raki_v_atake)

    thanx, i add argument $cpage in file class-better-recent-comments-util.php
    line 112

    result:
    $link_fmt = '<a href="' . esc_url( get_comment_link( $comment->comment_ID, [ 'cpage'=>0 ] ) ) . '">%s</a>';

    But I did not work, because
    4.4.0 verion Added the ability for $comment to also accept a WP_Comment object. Added $cpage argument.

    I have a version below

    4.9.8 tested – it’s work!

    • This reply was modified 1 year, 3 months ago by psina.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how remove pagination /comment-page-2/’ is closed to new replies.