Skip to:
Content
Pages
Categories
Search
Top
Bottom

Last post first

Viewing 6 replies - 1 through 6 (of 6 total)

  • Robkk
    Moderator

    @robkk

    like change the order of how the replies display??

    latest post on top , first post on the last page??


    Robkk
    Moderator

    @robkk

    found this code, add this to your function.php in your child theme

    function custom_bbp_has_replies() {
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending)
      
      return $args;
    }
     
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );

    Typically if you want to reverse the order of replies then also adding bbPress “Show lead topic” is handy:

    bbp_show_lead_topic

    Stephen, i can’t find: content-single-topic-lead.php

    You don’t need to change any files, just add the code from Rob and the code from the link I posted to your functions file.


    manheim
    Participant

    @jasonmanheim

    Any ideas as to how to add an option for this on the front end so users can switch back and forth between ascending and descending?

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar