Wordpress plugin to allow comments

by 12 replies
14
Hi Everyone,

I'm using the theme le-mag for my new wordpress site, but the theme doesn't come loaded with the normal comment section (as seen on each page/post).

Does anyone know of a plugin which will overrule this so I can get my comments back!?

Thanks,

Sam
#website design #comments #plugin #wordpress
  • I doubt there is a plugin for a secondary comment system within wordpress. Most comment plugins require the wordpress comment template.


    Use the wordpress code <?php comments_template(); ?> in your theme's single.php file after the the content area.

    If you need help doing it, let me know.
  • Thanks for the reply, unfortunately my single.php already has that line but the comment aren't showing.

    Code:
    <?php get_header(); ?>
    
    <div id="content">
    
    <div id="post-content">
    <div class="post">
     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <h2><a href="<?php echo get_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
      <div class="space"></div>
      <?php the_content('<p>Read the rest of this entry &raquo;</p>'); ?>
      <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
      <div class="postmeta">
       <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?><!-- | <?php trackback_rdf(); ?>--></p>
       <p>Category <?php the_category(', ') ?> | Tags: <?php the_tags(' ', ',', ' '); ?></p>
       <p>You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.</p>
      </div><!-- end #postmeta -->
    </div>
    
     <?php endwhile; else: ?>
      <p><strong>There has been a glitch in the Matrix.</strong><br />
      There is nothing to see here.</p>
      <p>Please try somewhere else.</p>
     <?php endif; ?>
     <?php comments_template(); ?>
              
    </div> <!-- end #post-content -->
    <?php get_sidebar(); ?>
    </div> <!-- end #content -->
    
    <?php get_footer(); ?>
    Seems like the theme is just a bit odd, any more suggestions?

    Thanks,

    Sam
  • And you have a comments.php file in your theme?

    As well as a comment-template.php in your wp-includes folder?

    And on the post or page in the admin area you have comments on, checked or whatever?
  • 1. The wp-includes (and other) folders are NOT theme-dependent: which means they should be there is any normal WP installation. [ergo, wrong question]

    2. Normally, if a template file is missing in the active theme WP used to pull it from the default theme (pre-3 versions). Somebody should check whether this is still true for the latest versions... Of course, this means you MUST have the default theme next to your custom theme on your server!

    EDIT. You must be doing something wrong: I checked the theme and it has all the necessary template files....
  • Are you saying "ergo, wrong question" to me?

    I know it's not part of the theme dude, but it needs to be there to work. lol

    Those were just the 3 simplest and quickest things he could check out first.
  • If Istvan checked your theme and it has all the required files you can take that as reliable advice - he knows his stuff.

    So the next thing to check is your admin settings. Check out this guide and make sure you have all the right boxes ticked:

    Settings Discussion SubPanel « WordPress Codex
    • [1] reply
    • Hi All,

      Kezz I followed the picture and all the same boxes are ticked, the page comment box is also ticked.

      I do have comments.php in my wordpress editor and in the cpanel I do have a comment-template.php

      )

      Seems strange to me. Please note I have no posts on the site, just pages.

      Thanks,

      Sam
      • [1] reply
  • Istvan, thanks for posting the links. I didn't understand how wordpress called upon different php files depending on categories. So is there anyway I can change the index.php to call for the comments which the single post.php would have?

    Thanks,

    Sam
    • [1] reply
    • Sorry for the late reply.
      Unfortunately, that's not true. I suggest you revisit that page...

      Why are we talking about the index.php?
      Pages are displayed by default with the page.php.

      If you don't have page.php - then yes, you should add the call for comments template to index.php.
  • Try Disqus which is a free comments plugin used by big tech sites like Mashable and Tech Crunch
  • Thanks for sharing .. i will use it.

Next Topics on Trending Feed