• 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 https://www.sangerfootball.com

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter jrp8170

    (@jrp8170)

    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

    Thread Starter jrp8170

    (@jrp8170)

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

    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
    https://simple-press.com/
    https://www.ads-software.com/extend/plugins/forum-server/

    Thread Starter jrp8170

    (@jrp8170)

    I’ll be glad to send you the page.php…

    https://pastebin.com/UPHqhWrh

    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

    Thread Starter jrp8170

    (@jrp8170)

    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Want to add comment thread for registered users’ is closed to new replies.