WordPress.org

Ready to get started?Download WordPress

Forums

Want to add comment thread for registered users (8 posts)

  1. jrp8170
    Member
    Posted 3 years ago #

    Hello,

    I am "managing" (I use this lightly) a website for our booster club. I would like to add user comments and or questions on one of our pages, but I am not sure how to do that.

    Can anyone give me some suggestions? Our site is http://www.sangerfootball.com

    Thanks!

  2. Samuel B
    moderator
    Posted 3 years ago #

    when you add or edit a post or page, you can enable comments for that page/post at the bottom of the page.

    Having said that - most themes have built in commenting for posts but not pages.
    So if yours doesn't have a comment form for pages, you will need to add some code to make it display.
    open your theme's page.php and add this line right after the_content() call - always back up 1st

    <?php comments_template(); ?>

    also, look in the dashboard under
    Settings -> Discussion
    and make sure you have checked users must be registered and logged in to comment.

  3. jrp8170
    Member
    Posted 3 years ago #

    I was hoping this woule be really straight forward...BUT:

    Please have a look at the code, and see if you still think that should paste in there. Thanks!!!

    code moderated

  4. jrp8170
    Member
    Posted 3 years ago #

    Maybe a forum would be best given our layout. How difficult is that? And users must be registered to post...???

  5. Samuel B
    moderator
    Posted 3 years ago #

    hi - use
    pastebin.com
    to post code
    I would need the theme's page.php to check the code

    you can use a forum plugin, also
    http://simple-press.com/
    http://wordpress.org/extend/plugins/forum-server/

  6. jrp8170
    Member
    Posted 3 years ago #

    I'll be glad to send you the page.php...

    http://pastebin.com/UPHqhWrh

  7. Samuel B
    moderator
    Posted 3 years ago #

    find this block

    <?php else : ?>
        <div id="left-col" class="column grid_8 rowleft">
        	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
            <h2 class="hdr_<? the_title() ?>" title="<? the_title(); ?>"><? the_title(); ?></h2>
        	<div id="post-<? the_ID() ?>" class="post">
    		<?php the_content(__('(more...)')); ?>

    put
    <?php comments_template(); ?>
    immediately after that
    of course, always back up 1st

  8. jrp8170
    Member
    Posted 3 years ago #

    Hi-

    The comments are there, but only if I go to a post that I created within the admin area, and click view post. I guess that the theme my designer used is not displaying the links and comment "pieces".

    I want to keep the theme we have, because it's way cool. Is there a standard page.php code I can compare to, to see what might be missing?

    Thank you very much for your help...

    Jim

Topic Closed

This topic has been closed to new replies.

About this Topic