#4386 closed enhancement (no action required)
Forum topics loop: Need a parameter to sort in reverse-chrono order
| Reported by: | frank13 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Forums | Version: | |
| Severity: | normal | 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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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