The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

A question about comments..

  • # August 9, 2008 at 11:06 pm

    This is kind of a unique request. but id like to find something like it…

    I’d like to build a site that uses user comments as the content. I’d like the newest comments to be at the top as if they were a blog post or something like it. I’d like the flexability and customization power of a wordpress blog.

    Also the fact that I host the WP is desireable, not like a guestbook service although i know the guestbook ‘loop’ format for comments is what Im looking for.

    Is there a way to get WP comments to show above each other instead of under? that would work for what im doing..

    Am I articulating this clearly?

    # August 10, 2008 at 2:48 am


    Locate a line which looks like the following:

    <?php foreach ($comments as $comment) : ?>

    and wrap around the $comments variable, array_reverse():

    <?php foreach (array_reverse($comments) as $comment) : ?>

    # August 10, 2008 at 6:33 pm

    nice, im happy that i can just use WP for this project


    # August 10, 2008 at 8:49 pm

    No problem, hope the site comes out great!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed