Anyway to sort the threads by descending date?


Home Forums Front End PM PRO Anyway to sort the threads by descending date?

This topic is: Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17730
    Edi Michael
    Participant

    Is there a way to display the latest message on the top of the thread(along with the input area)? It’s hard to scroll to the bottom when there’re too many messages in same thread.

    #17736
    Shamim Hasan
    Keymaster

    Add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_filter_get_message_with_replies', function( $args ){
        $args['order'] = 'DESC';
        return $args;
    });
    

    To show form on top, You have to edit view-message.php template. Instruction in https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    #17758
    Edi Michael
    Participant

    Thanks a lot!

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

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.