Viewing 7 replies - 1 through 7 (of 7 total)
  • Michael

    (@alchymyth)

    http://codex.wordpress.org/Function_Reference/comments_popup_link

    add this, within the loop, where ever you need it.

    Thread Starter phantommenace

    (@phantommenace)

    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

    Michael

    (@alchymyth)

    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?

    Thread Starter phantommenace

    (@phantommenace)

    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

    artduck-o

    (@artduck-o)

    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?

    Thread Starter phantommenace

    (@phantommenace)

    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

    artduck-o

    (@artduck-o)

    Yes, that worked. Thanks for the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to add the ability to make a comment to home page’ is closed to new replies.