Forums

Join
bbPress Support ForumsTroubleshootingHow to preselect a value in the forum dropdownlist?

Info

Tags

How to preselect a value in the forum dropdownlist?

  1. Hi,

    With <?php forum_dropdown(); ?> I get a dropdowlistbox that shows all the forums on my forum. Works great, but how can I get the dropdownlistbox to preselect a forum instead of showing the first one in the list?

    Tried:
    <?php forum_dropdown(2); ?> Where 2 = forum id of the preselected forum
    <?php forum_dropdown('Forum2'); ?> Where Forum2 is the name of the preselected forum

    Any ideas?

    Kind regards,

  2. <?php bb_forum_dropdown( array( 'selected' => 2 ) ); ?>

  3. Ahhhh so simple once you know how to do it :) Thanks a lot, it worked!

  4. You must log in to post.