No Comment box
-
a:
does you theme have a single.php?if not, look in index.php
b:
does the single.php contain a line of code with ‘comments_template()’ ?if not, add something like:
<?php comments_template(); ?>
after the end of the
<div class="entry-footer>
details depend on the exact code of the template files of your theme.
if you not sure what to edit, feel free to paste the code of any of these files into a http://pastebin.com/ (each) and post the link(s) to it here.
Hi, thanks for your answer!! 🙂
Yes, my template has a single.php
Code is:<?php get_header(); ?> <div id="primary-content" class="narrowcolumn"> <?php include (TEMPLATEPATH . '/theloop.php'); ?> <?php comments_template(); ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
So I’m not sure where I should post what in the index.php at . I want people to be able to add comments under each of the posts.
Thanks so much!
Naomi
imho, the ‘comments_template()’ needs to be in theloop.php before the ‘endwhile;’
HELP! So I’m trying to get my comments to show up, too. I found the code in the single.php for the comments and posted in my main index like this:
?php the_content(__(‘Read the rest of this entry »’, ‘js-o4w’)); ?>
<?php comments_template(); ?> <?php endwhile; else: ?>
but it’s not working. Anyone know why?
Ok so this is what I did:
</div> <?php comments_template(); ?> <?php } /* End The Loop */ ?>
It seems to be working just fine now! Thanks a lot! 🙂
On another note: since I have embedded the blog – is it recommended for me to forward people from get-into-medicalschool.com/blog/ to get-into-medicalschool.com/ via .htaccess? I believe this would also avoid dual content which is bad?
THANKS :)))
- The topic ‘No Comment box’ is closed to new replies.
(@valkener)
13 years ago
Hi,
this is my site: http://www.get-into-medicalschool.com. I have embedded the blog into my index.php with the loop, sidebar, etc. – but the comment function doesn’t work anywhere :/.
I also have another question:
Right now I have dual content in http://www.get-into-medicalschool.com and http://www.get-into-medicalschool.com/blog/ – what’s the best way to solve this? Dual content is not good for google etc.
Thank you so much, I really appreciate your help.
Naomi