• I have two PHP objects

    if(function_exists('wp_commentnavi')) { wp_commentnavi(); }
    which is the comment pagination

    and

    if(function_exists('wp_commentnavi_all_comments_link')) { wp_commentnavi_all_comments_link(); }
    which is the all comments link.

    I would like the second, all the comments link, to be only displayed if

    a) there are more than x comments OR

    b) if the comment pagination isn’t displayed neither should the all comments link.

    Essentially I want to say display all comments link if there are more than x comments, if not don’t display all comments link.
    Anyone know the code required to do this?
    Thanks in advance!

    https://www.ads-software.com/plugins/wp-commentnavi/

  • The topic ‘Only show PHP object if more than x comments or if an other object is enabled’ is closed to new replies.