WordPress.org

Ready to get started?Download WordPress

Forums

How to Add Comment form in every page? (18 posts)

  1. mariz_pt
    Member
    Posted 5 years ago #

    How can i add comment form in every page? currently my visitors can only comment in the home page. I want to have it in every page? Pls help. Thank you.

  2. mariz_pt
    Member
    Posted 5 years ago #

    Ifound the answer to this...

    I just have to add this code:

    <?php comments_template(); ?>

    It will look like this:

    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    <?php comments_template(); ?>
    </div>
    <?php get_footer();?>

  3. Wendel Brume
    Member
    Posted 5 years ago #

    Post a link to your site so people can see what is going on.

  4. blurr
    Member
    Posted 5 years ago #

    Help. What about inserting comment only in selected page?

  5. hotkee
    Member
    Posted 5 years ago #

    <?php if (is_page(2)) {
    comments_template();
    }
    ?>

    where 2 represents the ID of the page you want the comment to appear for, for multiple pages

    <?php if (is_page(2,10, 101)) {
    comments_template();
    }
    ?>

  6. blurr
    Member
    Posted 5 years ago #

    thanks.

  7. groq
    Member
    Posted 5 years ago #

    Say I have a photo album, at the following url:

    http://test.site.com/blog/pics/?album=1&photo=2

    How could I add the comment form to just those photos? I'm trying to create something similar to how Myspace adds comments to their photos in a user's photo album.

    Thanks,

    Groq

  8. andrewmatoke
    Member
    Posted 5 years ago #

    i'm very new with wordpress. how do i have a comment form appearing in every page/post, for now one has to log in "You must be logged in to post a comment.". i am at andrewmatoke.wordpress.com

    thanks

  9. RGLH
    Member
    Posted 5 years ago #

    Hello all, So where do I change these lines?
    My guess is in the ''wp-comments-post.php' but I don't regocnize the script.

    Thanks,

    Robert

  10. LJagermaster
    Member
    Posted 5 years ago #

    This might be just what I'm looking for, I only wish the person who started this thread would do the decent thing and stop hoarding information! :-p

  11. mkeckler
    Member
    Posted 5 years ago #

    Thank you so much! This worked great.

  12. stevy
    Member
    Posted 5 years ago #

    this code is great.

    But how to i center the comment form - on my page the form is well over to the right???

    http://stevehaworth.net/my-album

    appreciate some help here

  13. janeboha
    Member
    Posted 5 years ago #

    I am completely lost! I want to add the basic comment form to each post page and I simply cannot figure out how to do it. I've read the page http://codex.wordpress.org/Styling_Theme_Forms and that has that nice code and even a nice picture of the comment field but I simply cannot figure out what to do. Can you please break this down into steps? Thanks, Jane

  14. janeboha
    Member
    Posted 5 years ago #

    Follow up to my earlier comment:
    What I want is for people viewing my posts and blog to not have to log in every time they want to post something. I'm finding many people really like the blog and then they email me their comments, so the comments never get officially posted. They don't want to have to go to the trouble of logging in, creating a username and password, etc. And I don't care if they do. So I'd like something simple so they can just add a post and I'm thinking that this Akimet will weed out spam, correct?

  15. janeboha
    Member
    Posted 5 years ago #

    I got it. I go to Appearance, Discussion, and UNCHECK "Users must be registered and logged in to comment". Then the comment box appears! Wow.

    But the thing is that NOW we administrators have to LOG IN through the MYBLOG/wp-admin URL.

  16. kckal
    Member
    Posted 5 years ago #

    I will try to help. key word is try ;)

    put this "code":

    <?php comments_template(); ?>

    at the bottom of these files:

    1 page.php
    2 single.php

    these 2 files are located at

    ~/domain/wordpress/wp-content/themes/theme/

    add the "code" without the quotes, after the last <div> , right before <?php get_footer(); ?>

    this is what worked for me.

  17. janeboha
    Member
    Posted 5 years ago #

    My problem is solved. Allowing anybody to make a reply made the "comment" box appear. Then using the Akismet plugin catches my spam. Since I also use the hold comments for moderation option, I haven't gotten any spam. Thanks.

  18. dr.linux
    Member
    Posted 5 years ago #

    thank you
    Halı Yıkama

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags