Skip to:
Content
Pages
Categories
Search
Top
Bottom

Sort topics by date created


  • theicebooky
    Participant

    @theicebooky

    I am wondering if it is possible to sort topic by newest on top to lowest on the bottom. Right now, the snippet I am using to do this is:

    function my_custom_display_topic_index_query () {
    $args[‘orderby’] = ‘date’;
    $args[‘order’] = ‘DESC’;

    return $args;
    }
    add_filter(‘bbp_before_has_topics_parse_args’, ‘my_custom_display_topic_index_query’ );

    Is it possible to reverse this from 0ld->New to New->Old?

    P.S. How do I make it so that all the topics will be display in one page and not be pushed to the second page if the number of topics increase?

  • You must be logged in to reply to this topic.
Skip to toolbar