WordPress.org

Ready to get started?Download WordPress

Forums

Bouquet
[resolved] how to make latest comment show first (5 posts)

  1. tspnyc
    Member
    Posted 11 months ago #

    When I look up this issue, how to make the most recent comment show at the top rather than bottom of the comment list, I see solutions that refer to code which DOES NOT EXIST in the comments code for the Bouquet theme.

    I do not know code at all.

    How can I make comments in Bouquet so the order is reversed and the most recent is on top?

    I am also using a child theme, but it has been so long since I sent that up I do not even know how to get back into it.

    Thanks

  2. Konstantin Obenland
    Theme Wrangler
    Posted 11 months ago #

    Hi tspnyc,

    In Settings -> Discussion under "Other comment settings" you can set in which order comments should appear.

    Best,
    Konstantin

  3. tspnyc
    Member
    Posted 11 months ago #

    Thanks! Unfortunately, when I go into Discussion and change it to 'Comments should be displayed with the newer at the top of each page' it does NOT do anything and my comments remain in their original order.

    I made sure I was in the correct Dashboard, etc. and I saved the changed. I even tried checking the box about using 50 comments per page and display the last page.

    Could this be related to the fact I am using a child theme?

    In a related issue, I can no longer remember where the comments.php file lives or any .php file. I have been through every menu in the dashboard - including the Administrator section and they do not show up. Please advise. Thanks.

    PS I found the comments php in my ftp, I still cannot find where in Dashboard I go for that stuff.

    Anyway, most WP help says

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

    with

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

    But the comments.php does not contain any code remotely like this.

    It does contain the following note

    * The area of the page that contains both current comments
    * and the comment form. The actual display of comments is
    * handled by a callback to bouquet_comment() which is
    * located in the functions.php file.

    but the functions.php file likewise contains nothing like 'foreach ($comments)etc.

  4. esmi
    Forum Moderator
    Posted 11 months ago #

    Remember to press CTRL and F5 simultaneously when viewing an updated page/site. Or try emptying your browser cache. This should ensure that your web browser fetches a fresh copy of the page rather than serving up an out-dated copy from your own cache.

    Also disable/deactivate any caching plugin(s).

  5. tspnyc
    Member
    Posted 11 months ago #

    Thanks it was the refresh! It did nothing but I restarted the browser and deleted my recent history.

    But where DO I find the php files when in WordPress Dashboard?

    Thanks

Reply

You must log in to post.

About this Theme

About this Topic