Forums

Show all comments without having to click on the Comments link (5 posts)

  1. dcooper
    Member
    Posted 2 years ago #

    Does anyone know how I can display all the comments without having to click on the Comments link to show them. I have version 2.9.1. Surprisingly there is no option in the admin panel. Thanks greatly for any help.

  2. Saildude
    Member
    Posted 2 years ago #

    A link to the page that is not displaying Comments the way you want will help people to help you -

  3. dcooper
    Member
    Posted 2 years ago #

    Here is the link to the page that is not displaying all the comments but only displays the standard Comments link: http://collegejobcoach.com/blog
    Thanks greatly to whoever can help me,
    Dave

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    it's a theme specific thing rather than a WP option....
    usually, if your comments are a link, then in your index.php it probably references something like:

    <?php comments_popup_link('ADD COMMENTS', '1 COMMENT', '% COMMENTS'); ?>

    which can be swapped to
    <?php comments_template(); ?>
    to display your comment form in place

  5. dcooper
    Member
    Posted 2 years ago #

    Well I found the index.php file in the wp-content>themes>classic directory and replaced the <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> line of code with <?php comments_template(); ?> and made the comments links go away BUT didn't show the comments at all. I have version 2.9.1. Perhaps the code needs to be something a little different for this version?? I also noticed that there are 3 or 4 other index.php files in different places but none of them had code like the one I was told to replace. My goal again: to replace the Comments links and have all the comments show by default without having to click on any Comments links. Thanks for the help. I think I am close if someone can help me get over the hump-I'm sure it is something minor. (I tried it twice carefully to make sure I was doing exactly as instructed).
    thanks again,
    looking forward to response,
    Dave

Topic Closed

This topic has been closed to new replies.

About this Topic