adding a comments form to my posts & pages
-
HELLO
I am really new to WordPress and have been reading posts on this forum explaining how to add a comments form to a post. I am still confused and was wondering if someone could please look at my blog at https://www.doggroomingrochesterny.com and explain to me how to add a simple comment form to my posts & pages.Thank you.
-
Add the below to your template where you want the comments to display:
<?php comments_template(); ?>
I’m guessing this should go below the_content(); and:
<?php endwhile; else: ?>
Thank you for your help.
I’m so darn new at this stuff. What a humbling experience.
When you tell me to copy and paste <?php comments_template(); ?> to
my template…how would I access it?Where or how did you view the code: <?php endwhile; else: ?>
Sorry, I know this is probably something simple right?
Thanks again
Before we go adding any code…. most themes come with that built in
Are you sure you have comments turned on in settings->discussion?
Thanks for asking…….I just checked again and I have both boxes checked for comments and discussion. This is on the page where I create new posts.
I don’t know what I am doing wrong. I hope you can help.
Thanks again
OK, I downloaded the calve theme (the one you are using)
It has comments coded into it already, so it’s a configuration issue
It’s not coded to have anything relating to comments on the front page (if the fron page is displaying the post index).
It is coded to have comments on the single post view, it also does not appear to have comments for pages.
I tried to click through on your site to see a single post view, to see if you have comments showing, but I can’t get the post to load.
Is the place you are trying to activate comments a post, or a page?
Rev Voodoo
I have checked the comments and discussion boxes for both a post and a page that I have put up on this brand new blog.
What I’ve done is I go into the edit function for either a post or a page. Then I click on the screen options button (top right hand corner) and check the boxes.But I cannot create a comment form for either a post or a page.Thank you
You don’t need to create a comment form…. it is already done for you
It just needs to be turned on
In the overall settings area from your main menu, go to settings, then discussion, you’ll see some comment related options
Are they on? Not from post or page, but the overall site settings
Here is a copy of the main Dashboard-Settings-Discussion Panel.I’ve indicated which options I have Checked. I hope you are able to make some sense out of it and tell me which options to turn on or off. I guess this is what happens when you are on the bottom of the learning curve with WordPress.Thanks so much for your help.
DEFAULT ARTICLE SETTINGS:
*Default article settings Attempt to notify any blogs linked to from the article. (this is checked)
*Allow link notifications from other blogs (pingbacks and trackbacks.) (this is checked)
*Allow people to post comments on new articles
(These settings may be overridden for individual articles.) (this is checked)OTHER COMMENTS SETTINGS: ( Which of these options should I check?)
*Comment author must fill out name and e-mail
*Users must be registered and logged in to comment
*Automatically close comments on articles older than days
* Enable threaded (nested) comments 2345678910 levels deep (currently checked)
* Break comments into pages with top level comments per page and the lastfirst page displayed by default (currently checked)
* Comments should be displayed with the oldernewer comments at the top of each page
E MAIL ME WHENEVER:
* Anyone posts a comment (currently checked)
*A comment is held for moderation (Currently Checked)
BEFORE A COMMENT APPEARS:
*Before a comment appears An administrator must always approve the comment
*Comment author must have a previously approved comment
Comment Moderation :
*Hold a comment in the queue if it contains or more links. (A common characteristic of comment spam is a large number of hyperlinks.)
*When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the moderation queue. One word or IP per line. It will match inside words, so “press” will match “WordPress”.
Comment Blacklist
*When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.
Avatars
An avatar is an image that follows you from weblog to weblog appearing beside your name when you comment on avatar enabled sites. Here you can enable the display of avatars for people who comment on your site.
Avatar Display
*Don’t show Avatars
* Show AvatarsMaximum Rating
Maximum Rating G — Suitable for all audiences
PG — Possibly offensive, usually for audiences 13 and above
R — Intended for adult audiences above 17
X — Even more mature than aboveDefault Avatar
Default Avatar For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.
Mystery Man
Blank
Gravatar Logo
Identicon (Generated)
Wavatar (Generated)
MonsterID (Generated)
Retro (Generated)Thank you for creating with WordPress. ? Documentation ? Freedoms ? Feedback ? Credits
Your settings appear good (although you really didn’t need to copy the whole page!! we all have the same page!)
The main problem here is that your index page, and page template don’t currently have comments ability. I can help with that. Your single view should have comments ability
But I can’t get to that page to look
https://doggroomingrochesterny.com/dog-grooming-rochester-ny/
This post simply won’t open for meIn index.php changing
<?php the_content('<strong>Read more »</strong>'); ?> </div> </div><!--/post-<?php the_ID(); ?>--> <?php endwhile; ?> <div class="navigation">
to
<?php the_content('<strong>Read more »</strong>'); ?> </div> </div><!--/post-<?php the_ID(); ?>--> <?php if ( comments_open() ) : echo '<p>'; comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', 'Comments are off for this post'); echo '</p>'; endif; ?> <?php endwhile; ?> <div class="navigation">
would enable a link on your front page, which when clicked, would take you to the single post view comments area
and on page.php changing
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> </div> <?php get_sidebars(); ?>
to
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> </div> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> <?php comments_template(); ?> <?php endwhile; endif; ?> </div> </div> <?php get_sidebars(); ?>
Should enable comments on pages if you need that
Please note, I haven’t styled anything, so the display could be pretty unpredictable. Make sure you have a backup copy of these files, or the theme in case it gets screwed up, if you attempt these edits
I’ll give it a try.
Have a nice day!
Hello people,
I am facing the same problem. I want to have a contact form in the comments area but I am unable to do so. Every time someone goes to post a comment on my posts it shows ‘you must be logged in to comment”Guys please advice.
https://togetridofeczema.comThanks!
Please post your own topic.
- The topic ‘adding a comments form to my posts & pages’ is closed to new replies.