This topic has 3 replies, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #112286
     jazzbuzz
    Participant

    Hello,

     

    I would like to show the private messages descending so the new ones are on top and old ons are below the latest one.

    Right now I have to scroll all the way down to see latest messages.

     

    Is there a way to change the order?

     

    Thank you very much.

     

    Regards,

     

    Jasmin

    #112684
     Laura
    Moderator

    Hello, please follow the steps:
    1- Copy
    wp-content/themes/sweetdate/members/single/messages/single.php
    to your child theme so that the directory structure looks like this:
    sweetdate-child/members/single/messages/single.php

    Then in single.php, change

    COPY CODE
    
    <?php  
    if ( bp_thread_has_messages() ) :?>
    

    to

    COPY CODE
    
    <?php  
    	$args = array(
    	   'order'     => 'DESC'
    	);
    if ( bp_thread_has_messages( $args ) ) : ?>
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #112711
     jazzbuzz
    Participant

    Laura, thank you so much! It worked 🙂

     

    Have a great weekend.

     

    Regards,

     

    Jasmin

    #113041
     Laura
    Moderator

    Glad to help 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?