Skip to:
Content
Pages
Categories
Search
Top
Bottom

New Replies on top


  • saju746
    Participant

    @saju746

    Hello Friends, I need your help. How to get the latest reply on the top of the page. I tried a lot. But not got the solution. Where is the SQL has been written for getting the latest replies on top. Help me out please 🙁

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

  • Robin W
    Moderator

    @robin-w

    try adding this to your functions file

    add_filter('bbp_has_replies_query', 'modify_replies_query');
    
    function modify_replies_query($bbp_r) {
    $bbp_r = 'ASC';
    return $bbp_r;
    }
    
    

    Functions files and child themes – explained !


    saju746
    Participant

    @saju746

    I got a error after putting this code. But that error helped me to find out the code where I needed to change. Thanks very much 🙂 I appreciate 🙂


    Robin W
    Moderator

    @robin-w

    Can you put your solution on here to help others

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar