WordPress.org

Ready to get started?Download WordPress

Forums

Remove "0 Comments" (2 posts)

  1. Rocket Pixels
    Member
    Posted 4 years ago #

    I figured out how to remove "Comments are closed" from the bottom of posts, but how do I remove "0 Comments" from those posts that do not allow comments? Seems rather useless to even have the notification if posting comments for that article is not even allowed.

  2. Jonathan Dingman
    Member
    Posted 4 years ago #

    look for comments_number() and then modify that to display what you want to display.

    If comments are not allowed on a post, search for something like this in comments.php

    <?php if ('open' == $post->comment_status) : ?>

    Then edit below that.

Topic Closed

This topic has been closed to new replies.

About this Topic