Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display order of forums

  • @mike80222

    Participant

    Hi all,

    I’m looking for advice on how to control the order in which forums are displayed. Specifically, I want to be able to “pin” site forums at the top and have user created forums displayed lower down. I may have missed something obvious, but the only way I see to control this is with the “order” parameter (which can be set by hand) under “Forums” in the WP Dashboard.

    It appears that the order parameter is set to 0 by default. Is there a way to override this, so that I can make user-created forums (or all new forums) default to some higher number?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robin-w

    Moderator

    untested, but add this to your functions file or snippets

    add_filter ('bbp_before_insert_forum_parse_args' , 'rew_order' ) ;
    
    function rew_order ($args) {
    $args['menu_order'] = 10 ;
    return $args ;
    }

    Code Snippets

    @mike80222

    Participant

    That worked great. Thank you very much!

    @robin-w

    Moderator

    you’re welcome !

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