🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 22, 2026

How to Create bbPress Topics and Replies from Gravity Forms

GravityExtra
How to Create bbPress Topics and Replies from Gravity Forms

A forum is a great place for customers to help each other, but a forum page can look intimidating. Many visitors would happily ask a question in a short form on your help page, yet never click through to the forum, register and find the right category. If you already use Gravity Forms and bbPress, you can connect the two so that a form on any page creates a proper forum topic, and a reply form lets people answer without leaving the page. This guide explains how it works, what can go wrong when it is done by hand, and how to set it up safely.

A Gravity Forms topic form for a forum member with a Forum drop down that lists only the forums that member may post in, plus title, question, tags and name fields
The Forum drop down is filled for each visitor: only forums that person may post in are listed.

Why Forum Topics Are Not Ordinary Posts

bbPress stores topics and replies as custom post types, so it is tempting to use any tool that creates posts. In practice that leads to topics that appear in the admin list but not in the forum, or that show up with wrong counts. A real topic needs several things at once.

  • The right parent. A topic belongs to a forum and a reply belongs to a topic. The forum is stored as the parent of the post and again in bbPress meta.
  • Counters. Forums count their topics and replies, topics count replies and voices, and everything keeps a last active time. These counters drive the freshness column on the forum index.
  • Rules. Private forums are for members, hidden forums for moderators, closed forums for nobody except moderators, and categories hold other forums but no topics.
  • Moderation. Posts with certain words or many links wait for approval, and words on the disallowed list are not accepted at all.
  • People. Guests may post only if the site allows it, with a name and an e-mail address, and members can follow a topic to get replies by e-mail.

If a form skips any of these, you get a forum that looks broken or that can be abused. The pending queue is bypassed, a visitor writes into a hidden forum by changing a number, or the forum shows zero replies for a topic that has ten.

How bbPress Wants Posts to Be Created

bbPress offers functions for exactly this job. One function creates a topic and sets all its bbPress meta and counters; another does the same for a reply. Around them sit the checks of the forum form: the forum must exist and accept topics, the author must be allowed to post, the content is cleaned, moderation and disallowed words are tested, and flood and duplicate checks are run. When the post is saved, bbPress fires an action that sends the mails to followers and updates activity streams.

The Gravity Forms bbPress Integration add-on follows that path. It runs the same checks, creates the post with the bbPress functions, and fires the same action, so everything that hooks into bbPress keeps working.

Set Up a Topic Form in Five Minutes

  1. Create the form. A Single Line Text field for the title, a Paragraph field for the question and a Drop Down field called Forum are enough. Add a text field for tags and a File Upload field if you want them.
  2. Open the form settings, choose bbPress and add a feed with the action to create a forum topic.
  3. Choose that the visitor picks the forum and select the Drop Down field. The add-on fills it with the forums that visitor may post in.
  4. Pick the fields for the title, content, tags and attachments, and choose whether the topic is published or waits for a moderator.
  5. Send a test entry. The note tells you what was created, and a link opens the topic in the forum.
The bbPress feed settings of a Gravity Forms form: the forum chosen by the visitor from a drop down field, the title, content, tags and attachments fields, the status, the author rules and the option for disallowed words
The feed of one form: where the topic goes, which form fields fill it, and how bbPress rules apply.

A Forum Picker That Respects the Rules

The most useful part is the forum list. A plain drop down with a fixed list would show every visitor every forum, including the ones they cannot use. The add-on builds the list for the person who opens the form. A signed-in member sees the public and private forums. A moderator also sees hidden and closed forums. A blocked user or, where guests are not allowed, a visitor who is not logged in sees nothing and gets a clear message after sending. Categories and password forums never appear.

Trust is never placed in the list alone. When the form is sent, the forum is checked again with the same rules, so a changed value in the page source is refused. The same list is available to any Drop Down field with a CSS class, which is handy for a form that needs the forum but does not create the topic itself.

Replies Without Leaving the Page

Reply forms are just as useful. You can put a small form under an announcement, on a product page that links to a support topic or on the topic page itself. The topic can be fixed, chosen from a list of open topics, or taken from the page: the add-on fills a Hidden field with the id of the topic that is on screen. Before anything is saved, the topic must be published and open, the forum must be open and readable by the author, and the site must be accepting new posts. Moderators can still answer closed topics, as in the forum itself.

Moderation, Spam and Guests

Forums attract spam, so the rules matter. Words on the WordPress moderation list and posts with too many links are created as pending, so a moderator can read them first. Words on the disallowed list are handled the way you choose: show an error, create the post as pending, or file it as spam. Moderators are not held back, because bbPress trusts them, and the flood limit and duplicate check apply as they do in the forum.

Guests are handled with care. Posting without an account works only when the bbPress guest setting is on and the feed allows it. The visitor gives a name and an e-mail address, both filtered by bbPress, and the post stores them as a guest post. A guest never gets tags, never gets a subscription and never reaches a private or hidden forum.

A Gravity Forms entry page with the entry note that says which bbPress topic was created in which forum and that the author was subscribed, and the bbPress box with a link to the topic
The entry note says what was created, in which forum and with what status, and the side box links to the topic.

Tags, Attachments, Sticky and Subscriptions

Topic tags can come from a comma list or from checkboxes, and they are added only for members who may assign tags. bbPress has no attachment feature, so the add-on adds links to the uploaded files at the end of the content, limited to the Gravity Forms upload folder. A topic can be made sticky, but only by a feed an administrator set up and only when the person who sends the form may moderate; for everybody else the topic is simply published. The author can be subscribed to the new topic, so bbPress sends them the replies by e-mail.

From the Forum Back to a Form

The other direction is just as handy. An event feed watches the forums you choose, and every new topic or reply becomes an entry in a form. You decide which values to keep: title, text, author, forum, link and status. If you also turn on notifications for the event, the form can send an e-mail to your support team for every new post, with the link to the topic. Entries can then be exported, filtered, or passed to anything else that works with Gravity Forms entries.

Tips for a Clean Setup

  • Start with Pending moderation while you test, so you can read each topic before it goes live.
  • Use a separate form for each forum or audience, or one form with a forum picker and conditional logic.
  • Keep the disallowed list short and the moderation list generous.
  • Show the form to logged-in members only if you want accountable authors; use the guest option for open support forms.
  • Use the entry note as your debugging tool: it lists what was created and the reason when nothing was.
  • Add the CSS class for the forum list to search or routing forms that need a list of forums.

New in 1.1: Let Members Review a Draft Before It Goes Live

bbPress has no draft status for topics. Version 1.1 of the Gravity Forms bbPress Integration add-on adds Draft for review: the form creates the topic or reply as pending, and the person who sent it gets a private, signed edit link.

  • Edit before it is public. The author changes the title and text on a page with the [gfbbpress_draft] shortcode.
  • Your choice per feed. The author either publishes it or submits it for approval; moderators approve it in bbPress as usual.
  • Merge tags. {bbpress:topic_edit_url} and {bbpress:topic_status} for the confirmation and the author’s notification.

A typical use: a feedback form pre-fills a forum post, the member tidies it up on the review page and only then shares it with the community. Full guide: bbPress Integration documentation.

Private review page of a draft bbPress topic created from a Gravity Forms form

Frequently Asked Questions

Do visitors need an account?

Only if you want that. Guests can post when bbPress allows it and the feed is set to accept them.

Can I choose the forum myself?

Yes. Choose a fixed forum in the feed and the visitor sees no picker.

Will the forum counts be right?

Yes. Topics and replies are created with the bbPress functions, so counts, freshness and last active times are updated.

What if a visitor tries a forum they may not use?

The value is checked again when the form is sent and refused with a message.

Does it work with the free bbPress plugin?

Yes, the free bbPress plugin from wordpress.org is all you need.

A good forum form should feel as simple as a contact form and as safe as the forum itself. A feed that knows the bbPress rules gives you both: visitors ask in one step, moderators keep control, and the forum stays in good order.

See the Gravity Forms bbPress Integration add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr