Thanks for the quick reply. I’m new to WP and a bit unsure as to where I should put the code. Do I add it to the ‘Main Index Template’ and can it go anywhere? Thanks, Steve
Do I add it to the ‘Main Index Template’
yes, most likely
can it go anywhere?
not every where – just between while(have_posts()):the_post();
and endwhile;
, i.e. inside the loop
http://codex.wordpress.org/The_Loop_in_Action
where exactly depends where yo want the comments link to appear – before the content, or after?
I think before the content would be good. Does this mean there is a specific place I should place the code? Thanks once again, Steve
I’m new, too, and I’m really trying to get this figured out. I’m at http://www.artduck-o.com
I read about the loop, but now I’m confused about the actual code I need to put into the loop to show the comments. How do I know which code to use?
OK, I read through the links you directed me to alchymyth and I have sorted it, thanks.
artduck-o
The text I added was:
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
and I added it to this page:
Main Index Template
(index.php)
I added it after this bit of code:
<?php the_time('F jS, Y') ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> | <?php edit_post_link('Edit', '', ''); } ?>
Now the comments link appears on the front page under the headline of each post. Hope you get yours sorted too.
thanks, Steve
Yes, that worked. Thanks for the help.
(@phantommenace)
13 years ago
I am using the http://newwpthemes.com/wordpress-theme/gamesawe/ theme for my website: http://www.phantommenace.co.uk and I want to make an ‘add a comment’ link to each post that appears on the home page. At the moment someone can only make a comment by going into each individual post page.
Any help would be much appreciated
thanks
Steve