[buddypress-trac] [BuddyPress] #4386: Forum topics loop: Need a parameter to sort in reverse-chrono order (was: Need a Hook for Sort in Reverse-Chrono Order)
    buddypress-trac at lists.automattic.com 
    buddypress-trac at lists.automattic.com
       
    Thu Jul 26 19:48:12 UTC 2012
    
    
  
#4386: Forum topics loop: Need a parameter to sort in reverse-chrono order
-------------------------+------------------------------
 Reporter:  frank13      |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Forums       |     Version:
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |
-------------------------+------------------------------
Changes (by r-a-y):
 * status:  new => closed
 * resolution:   => invalid
 * component:  Core => Forums
Comment:
 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:
 [http://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-themes/bp-
 default/groups/single/forum/topic.php /bp-default/groups/single/topic.php]
-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4386#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
    
    
More information about the buddypress-trac
mailing list