SOLVED! Help me with Wordpress?

5 replies
Hi,

I wasn't sure which was the best spot for this type of question... programming or web design. The original query is over here:

http://www.warriorforum.com/website-...BpclteAWTUVLNC

But since no one seems to know, I thought maybe someone in this forum might know.

I'm having problems with the Add Comments feature in Wordpress. It doesn't show up, even though I've checked all the boxes to allow people to comment on this one post. It worked on one other post, but I can't seem to get it to activate on this particular Page.
PLR Products | PLR Products Monthly - News & Tips

You can get all the details of what I did on that other thread.

Thanks.

Sylvia
#wordpress
  • Profile picture of the author mywebwork
    Hi Sylvia

    I looked at the other thread and I'm not clear on one thing - did you try John's suggestion of trying the default theme just to see if the problem was theme-related? And if so what were the results?

    It sounds to me like this particular page may be using a different template which is not setup to have comments. If that's the case then there is a template file that would need editing to fix it.

    You should be able to see if this page uses a different template when you open it for editing - the template selection is on the right side. Perhaps your "particular page" is not using the default template.

    Bill
    {{ DiscussionBoard.errors[1820651].message }}
    • Profile picture of the author sylviad
      Thanks Bill,

      I was reluctant to try switching to the WP default template because I didn't want to lose what I had set in this one (Minion).

      But to answer your question re default template, I checked the post edit screen and on the right it does show as default. The only other selections in the drop down menu are archives and sitemap.

      I really like this template so I sure would like to do whatever is necessary to make the comments work on the Pages.

      I see that pjCheviot has offered a possible solution. And yes, I am using a Page instead of a Post.

      So how do we go about making that correction?

      Sylvia

      Here's the code for the Page Template (page.php)

      <?php get_header(); ?>
      <div id="content">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <div class="entry">
      <div class="post" id="post-<?php the_ID(); ?>">
      <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1>
      <small class="small">Written on <abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s - %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> | by <?php the_author() ?> | <?php if(function_exists('the_views')) { the_views(); } ?> </small>
      <?php the_content('<br />Read the rest of this page &raquo;'); ?>
      </div>
      </div>
      <?php endwhile; endif; ?>
      <br clear="all" />
      <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
      </div>
      <?php get_sidebar(); ?>
      <?php get_footer(); ?>


      Originally Posted by mywebwork View Post

      Hi Sylvia

      I looked at the other thread and I'm not clear on one thing - did you try John's suggestion of trying the default theme just to see if the problem was theme-related? And if so what were the results?

      It sounds to me like this particular page may be using a different template which is not setup to have comments. If that's the case then there is a template file that would need editing to fix it.

      You should be able to see if this page uses a different template when you open it for editing - the template selection is on the right side. Perhaps your "particular page" is not using the default template.

      Bill
      Signature
      :: Got a dog? Visit my blog. Dog Talk Weekly
      :: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
      {{ DiscussionBoard.errors[1821071].message }}
  • Profile picture of the author pjCheviot
    Banned
    Hi Sylvia

    The "problem" is with the minion theme you are using (and it is quite common in other themes too) - it appears that you are using a PAGE (rather than a POST) for PLR Products | PLR Products Monthly - News & Tips - and this theme has no comments enabled for PAGES.

    You could go into the page.php file and insert the comments code where necessary - I think it would be
    Code:
    <?php comments_template(); ?>
    Hope that helps.
    {{ DiscussionBoard.errors[1820652].message }}
  • Profile picture of the author pjCheviot
    Banned
    Hi Sylvia

    Insert the red text here

    -----------

    <?php the_content('<br />Read the rest of this page &raquo;'); ?>
    </div>
    </div>
    <?php endwhile; endif; ?>
    <br clear="all" />
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    <?php comments_template(); ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    -----------

    That should do it.
    {{ DiscussionBoard.errors[1821175].message }}
    • Profile picture of the author sylviad
      pjCheviot...

      Thank you very much. It works perfectly.

      Sylvia

      Originally Posted by pjCheviot View Post

      Hi Sylvia

      Insert the red text here

      -----------

      <?php the_content('<br />Read the rest of this page &raquo;'); ?>
      </div>
      </div>
      <?php endwhile; endif; ?>
      <br clear="all" />
      <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
      <?php comments_template(); ?>
      </div>
      <?php get_sidebar(); ?>
      <?php get_footer(); ?>

      -----------

      That should do it.
      Signature
      :: Got a dog? Visit my blog. Dog Talk Weekly
      :: Writing, Audio Transcription Services? - Award-winning Journalist is taking new projects. Warrior Discounts!
      {{ DiscussionBoard.errors[1821228].message }}

Trending Topics