• Resolved Emerogorek

    (@emerogorek)


    Up until now, my site has been read only and now I want to allow comments on one page. IT is all set up and working but the oldest messages are on the bottom. How do I reverse this and get oldest at the top?

    Is this a user setting? I have no registry and don’t require (actually not allow) login but will approve messages before they are posted.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is this a user setting? I have no registry and don’t require (actually not allow) login but will approve messages before they are posted.

    No, the administrator sets this up. The subscribers or just guests on your website can not change any of this unless you allow them to by download a plugin that enables them to.

    How do I reverse this and get oldest at the top?

    What theme are you using on your website? There may be a setting in there Theme Options or in the Discussion section in the WordPress settings to change the order of them. I am not sure.

    If you can not find any option for that, then it is time to go into the coding. Don’t get scared.

    The following code can be added to you function.php in your child theme, main theme, or a plugin.

    if (!function_exists('iweb_reverse_comments')) {
        function iweb_reverse_comments($comments) {
            return array_reverse($comments);
        }
    }
    add_filter ('comments_array', 'iweb_reverse_comments');

    That should reverse the comments order to make it oldest to newest.

    Let me know if that works for you or not.

    You shouldn’t need coding or a plugin for this.

    In your dashboard, go to Settings -> Discussion.

    Then under Other comment settings, there is a setting for “Comments should be displayed with the OLDER / NEWER comments at the top of each page

    Set that to Newer and save all settings.

    Thread Starter Emerogorek

    (@emerogorek)

    Yep, Settings–Discussion did it.
    Thanks…..

    Great!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Oldest message ontop?’ is closed to new replies.