• I’m as a graphic designer and new to customizing WP. I have it installed for a client at http://www.myideallife.com/blog . I’ve set it up so people do not have to register OR have their comments approved but they do have to include their name and email and the client is notified for each post. We wanted it to be as barrier-free as possible and she figures she’ll check every time she’s notified and immediately remove anything that’s inappropriate. I did install the anti-spam add-on.

    So now for my question… it seems that the way it’s setup using the default, the comments are not displayed until you click on 5 Comments then it expands the list of comments. Is there a simple tweak either in the style or in the dashboard where I can change this so whatever comments there are will just be displayed without having to click on the number of comments first?

    Thanks,
    Sheila
    http://www.hoffmangraphics.com

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Sheila

    (@sheilahoff)

    This is my first post here so I don’t know what the “norm” is. But I’m a bit disappointed to have no responses at all. Hopefully this will bump my question back to where someone might see it and respond. THANKS!

    Thread Starter Sheila

    (@sheilahoff)

    Thanks to someone on another forum I’ve found my solution. I thought I’d post it here in case someone comes along later and wonders the same thing… See full article here: http://www.flisterz.com/2008/06/02/wordpress-display-comments-on-main-page/

    Consider we are using the Default WP theme, open your index.php file, and add this line of code

    <?php $withcomments = 1 ?>

    right after <?php get_header(); ?>

    Then add the comment template tag <?php comments_template(); ?> inside the Loop before <?php endwhile; ?>

    uemike

    (@uemike)

    Shiela,

    Thanks for posting that. It did help me out. I just thought you’d like to know.

    For future reference, this isn’t the forum to turn to to get a question answered. Look here to see if a solution is already posted. If not, post it elsewhere. You’ll get much better results.

    Mike

    unpaidentertainer.com
    thesportsdick.com

    hi there, i am using the Atahualpa theme

    how do I extend my comments automatically for this theme on the home page? can anyone help?

    Lee

    (@diondeville)

    Thank you Sheila, this has helped me edit the Lightword theme.

    Jumanok, here’s what you need to do:

    1. Go to your Dashboard, Find where it says Appearance in the sidebar on the left-hand-side then select Editor,
    2. On the right-hand-side of the newly opened page, you will see a new list of files; select the one that says Main Index Template or index.php,
    3. In the editor window you will see text that starts with <?php followed by more text. Look for a line that says <?php get_header(); ?> and add <?php $withcomments = 1 ?> onto a new line below it,
    4. Now check through this page for any line of text that might say <?php comments_template(); ?> (my template already had it in it). If it isn’t present then find <?php endwhile; else: ?> and above it, on a line of its own, add <?php comments_template(); ?>.

    So the top might then look like

    <?php get_header(); ?>
    <?php $withcomments = 1 ?>

    And somewhere toward the bottom it will then look like

    <?php comments_template(); ?>
    <?php endwhile; else: ?>

    You will find it easy to search index.php were you to copy it into a text editor, press ctrl+f then type your search terms.

    Hope that wasn’t over explained.

    http://journalxtra.com

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘automatically expand to display all comments’ is closed to new replies.