Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can you assign the "Create New Topic" link to a specific forum?


  • KostRev
    Participant

    @kostrev

    Is there a way to programmatically assign the “Create New Topic” link to the Forum from where it was created? For example, on this website (bbpress.org) if you are in the “Troubleshooting” forum and choose “Create New Topic” it would seem best to default to the forum you are currently in (Troubleshooting) rather than, in this case, Installation.

    Is there a way to pass the forum id to the dropdown menu?

    Thanks for any input.

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

  • Robin W
    Moderator

    @robin-w

    I thought that’s what it did in default mode.

    If you are using shortcodes, then you have options

    [bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
    [bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.

    Otherwise come back with a url where this isn’t happening


    KostRev
    Participant

    @kostrev

    Thanks. I sort of figured that out after removing my custom templates. Not sure where I got the code for form-topic.php because it was very different from the default and that made the difference.

    Thanks for the tip on the shortcode. That alone would have helped some of my troubleshooting.


    Robin W
    Moderator

    @robin-w

    Great – glad you’re sorted

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