• Resolved OSCOWP

    (@oscowordpress1)


    Can I change the settings of bbpress style for showing on the first page of the topic the most recent reply instead of the oldest?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Robin W

    (@robin-w)

    sorry, not a setting that I have allowed for.

    This code should help

    add_filter ('bbp_before_has_replies_parse_args' , 'rew_change_order') ;
    
    function rew_change_order ($args) {
    	$args['order'] = 'DESC' ;
    return $args ;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use
    https://en-gb.wordpress.org/plugins/code-snippets/

Viewing 1 replies (of 1 total)
  • The topic ‘change order of how reply appear’ is closed to new replies.