AlexRayan (@alexrayan)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • In reply to: Change "posting order"

    AlexRayan
    Participant

    @alexrayan

    @tapirk Alternatively, you can also put this function with the filter into your theme’s functions.php file in case you don’t want to create a plugin.

    In reply to: Change "posting order"

    AlexRayan
    Participant

    @alexrayan

    To whomever wonders how to switch the order of replies. This filter actually works well, just the code needs to be modified to change the array value in $query[‘order’].

    function bbp_reverse_reply_order( $query = array() ) {
        $query['order']='DESC';
        return $query;
    }
    add_fiter('bbp_has_replies_query','bbp_reverse_reply_order');
    

    Hope, it helps someone.

    Regards,
    Alex

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