Skip to:
Content
Pages
Categories
Search
Top
Bottom

Order of Topics


  • RitaJoC
    Participant

    @ritajoc

    Is there a way to have the oldest topic show first in the forum and the newest topic last? Thanks.

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

  • Robin W
    Moderator

    @robin-w

    Not that I know


    Stephen Edgar
    Keymaster

    @netweb

    This should work…

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

    batmanfan
    Participant

    @batmanfan

    @Stephen, newbie here. How and Where to add the above code please. Thank you so much.


    Renato Alves
    Participant

    @espellcaste

    @batmanfan In your functions.php inside your theme should work fine. =)


    RitaJoC
    Participant

    @ritajoc

    Thanks! I didn’t realize my question was answered. So, are you sure adding these codes won’t break the site? Thanks, again.


    Renato Alves
    Participant

    @espellcaste

    @ritajoc My best advice would use it in a dev site first. Just to make sure and then, move it to the live one.

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