WordPress.org

Ready to get started?Download WordPress

Forums

comments box should show permanently, even if there are no comments (3 posts)

  1. presseroo
    Member
    Posted 3 years ago #

    I don't know, maybe sitting 14 hours straight on a pc is not good for me, or there are not enough experts floating around in this forum.

    It almost seems to be the simplest thing that one could tick somewhere something and the comments on every page or post (where enabled) would show permanently (to be more inviting to visitors to post a comment, which is what i really really want), but there isn't one in Settings > Discussion.

    Looking through this forum i find a bunch of entries about this - but guess what, they where all closed before a solution was mentioned, have i accidentally discovered the infamous Bermuda Triangle within WordPress or what???

    I am operating this site
    http://westernpacifictravel.cz.cc/
    and i want to make as easy and convenient to any visitor with travel experience to post their opinion and experiences on the hotels and airlines i chose to list in my blog, but with nothing but a tiny little link saying "View Comments" - that is just not going to work!
    I am using this Disqus comments plugin, but it is not showing the comments box openly either, just like the default WordPress comments don't.

    I don't mind going back to the default if need to be, but please anyone, how can the comments box become visible permanently even if there is no comment??

    Oh, a Plugin could do that for me you think - well, checked that out alright already, most of the existing plugins that sound like they could do that end up with a nice little WP3 note "warning, not tested to work with this version..."...

    Heeeeeeeeeeeeeeeelp, can someone guide me out of this comments Neanderthal please??

  2. Joseph
    Member
    Posted 3 years ago #

    I'm surprised no solution has been mentioned. It's a very simple mod.

    Add <?php comments_template(); ?> before <?php endwhile; ?> in index.php.

    Open /wp-includes/comment-template.php and comment out line 855 and 856 like this:

    /*if ( !(is_single() || is_page() || $withcomments) || empty($post) )
    	return;*/

    And there you have it.

  3. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    without modifying wordpress core files, which would be restored to 'normal' with each upgrade, you can get the same effect by adding:

    <?php global $withcomments; $withcomments = true; ?>
    before the
    <?php comments_template(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic