Skip to:
Content

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#4386 closed enhancement (no action required)

Forum topics loop: Need a parameter to sort in reverse-chrono order

Reported by: frank13 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Forums Keywords:
Cc:

Description

I would like the ability to sort "Group Discussion" discussion threads in reverse Chrono order.

Kindly consider an add_filter() for this.

Thank you.

Change History (2)

#1 @r-a-y
7 years ago

  • Component changed from Core to Forums
  • Resolution set to invalid
  • Status changed from new to closed
  • Summary changed from Need a Hook for Sort in Reverse-Chrono Order to Forum topics loop: Need a parameter to sort in reverse-chrono order

Hi,

You should look into the bp_has_forum_topic_posts() loop:
http://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-forums/bp-forums-template.php#L1101

Pass the 'order' parameter as DESC.

eg. if ( bp_has_forum_topic_posts( 'order=DESC' ) {

The forum topic posts loop can be found in this template:
/bp-default/groups/single/topic.php

#2 @DJPaul
7 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.