BuddyDev

Search

Topic Ordering within Forum

  • Participant
    Level: Initiated
    Posts: 8
    Judi Weingarden on #41979

    Is there any way to order or sequence topics within a forum?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2459
    Ravi on #41987

    Hello Judi,

    Thank you for posting here. Please do let me know more about your requirement. Do you want to change the default topic order in a forum or anything else?.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 8
    Judi Weingarden on #41996

    I would like Topics to be sorted Alphabetically for all users; ideally locked Topics displaying first.
    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2459
    Ravi on #41999

    Hello Judi,

    Thank you for the acknowledgment. Please try the following code it will set the topic alphabetically.

    
    
    add_filter( 'bbp_after_has_topics_parse_args', function ( $args ) {
    	$args['orderby'] = 'title';
    	$args['order']   = 'ASC';
    
    	return $args;
    } );
    
    

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved