LifterLMS bbPress Forums: Private Discussion for Each Course

Set up course-restricted forums with the built-in LifterLMS bbPress integration: enable it, attach forums to courses or memberships, show them on lessons, reward participation and avoid the common leaks.

  • Add as a preferred source on Google
Illustration for “LifterLMS bbPress Forums: Private Discussion for Each Course”

A forum gives students somewhere to ask questions, share work and help each other, organised by topic instead of buried under individual lessons. The LifterLMS bbPress integration lets you attach private forums to a course, so only students who are currently enrolled can read or post.

It is part of the free LifterLMS plugin, and bbPress itself is free, so this is the cheapest way to add real discussion to a course site. This guide walks through the setup, the display options, the engagement triggers and the gaps worth testing before you go live.

If you are still choosing between forums, comments and a social network, compare them first in our guide to LifterLMS community options.

What the LifterLMS bbPress integration does

Once enabled, the integration adds four things:

  • Private course forums. A bbPress tab on each course lets you pick forums that only students currently enrolled in that course can access.
  • Membership-restricted forums. Forums get the Membership Access box, so you can limit a forum to one or more memberships.
  • A course forums list. A widget and a shortcode list the current course's forums on course and lesson pages.
  • Engagement triggers. Student creates a new forum topic and Student creates a new forum reply can award achievements or send emails.

Which one should you use? Course forums when the discussion belongs to one course. Membership restriction when a forum serves everyone in a membership, such as an all-members lounge.

Set up bbPress and enable the integration

  1. Install and activate bbPress from WordPress.org.
  2. Go to LifterLMS > Settings > Integrations and open the bbPress section.
  3. Tick Enable / Disable and save.
  4. Under Forums in the admin, create the forums you need. A practical start is one forum per course, or a category per course with a few forums inside it, such as "Questions", "Share your work" and "Introductions".

Leave each forum's bbPress visibility on Public. LifterLMS does the restricting. bbPress's own Private setting only requires users to be logged in, and Hidden limits forums to moderators, which would lock students out.

Attach forums to a course

  1. Edit the course.
  2. In the Course Options box, open the bbPress tab.
  3. In Private Course Forums, start typing to find forums and select them. The description reads "Add forums which will only be available to students currently enrolled in this course."
  4. Update the course.

How the restriction behaves

  • A visitor who is logged out, or logged in but not enrolled, who opens the forum or any topic in it is sent to the course page with the notice "You must be enrolled in this course to access the course forum."
  • "Currently enrolled" matters. Students whose enrollment expired or was cancelled lose access to the forum at the same moment as the lessons.
  • A forum attached to several courses is open to students enrolled in any of them. Use that for a shared forum across a course bundle.
  • Instructors and admins should test with a separate student account; your own admin account is not a good test of what students see.

Customise the restriction message

The default notice is clear but generic. A developer can change it, for example to tell students how to enrol:

add_filter( 'llms_bbp_course_forum_restriction_msg', 'llmsx_forum_restriction_msg', 10, 2 );
function llmsx_forum_restriction_msg( $msg, $restriction ) {
	$course = llms_get_post( $restriction['restriction_id'] );
	if ( ! $course ) {
		return $msg;
	}
	return sprintf(
		/* translators: %s: course title */
		__( 'This forum is for students of %s. Enrol below to join the discussion.', 'llmsx' ),
		$course->get( 'title' )
	);
}

The student is still redirected to the course page, where the notice is displayed and the enrol options are close at hand.

Restrict forums to a membership

For a forum that belongs to a membership rather than a course:

  1. Edit the forum.
  2. In the Membership Access box, tick Restrict this Forum.
  3. Choose one or more Memberships. Visitors must belong to one of them to get in.
  4. Update the forum.

Topics inside the forum inherit the restriction, because LifterLMS checks a topic against its parent forum. If you have created a WordPress page at the forums root address, restricting that page with a membership also restricts the main forums index.

Membership restriction and course forums can be used together on the same site, but keep each forum to one rule. A forum that is both attached to a course and restricted to a membership is harder to reason about when a student reports they cannot get in.

Show course forums where students will see them

Students will not go looking for a forum. Put it in front of them on the course and in lessons.

The widget

Under Appearance > Widgets, add LifterLMS Course Forums List to the course and lesson sidebar. It lists the forums attached to the current course, and shows nothing on courses without forums. This is the simplest option on classic themes with LifterLMS sidebars.

The shortcode

On block themes and page builders, use the shortcode in a Shortcode block or element:

[lifterlms_bbp_course_forums]

On a course it lists that course's forums. On a lesson it finds the parent course automatically. To list a specific course's forums somewhere else, add the ID: [lifterlms_bbp_course_forums course_id="123"].

A good habit is a short "Discuss this lesson" line with the shortcode at the end of key lessons, rather than one link hidden on the course page.

Embedding a forum

bbPress's own shortcodes, such as [bbp-single-forum id="123"], embed the forum itself on a page. The LifterLMS restriction applies to the forum's own pages, so if you embed a restricted forum on an ordinary page, restrict that page too.

Reward forum participation

The two forum triggers plug into LifterLMS engagements, the same system that sends emails and awards certificates.

  1. Create an achievement, for example "First post".
  2. Go to Engagements in the admin menu and click Add Engagement.
  3. Choose the trigger Student creates a new forum topic or Student creates a new forum reply.
  4. Choose the engagement type and the achievement or email, then publish.

These triggers fire for any topic or reply, not per forum or per course. Use them for general encouragement, such as a welcome achievement for a first post, rather than course-specific rules. Our guide to LifterLMS achievements and badges covers designing rewards that do not feel gimmicky.

Troubleshooting and things to test

  • The bbPress tab is missing on courses. The integration is not enabled, or bbPress is not active. Check LifterLMS > Settings > Integrations.
  • Topics return a 404. Go to Settings > Permalinks and click Save to refresh the rewrite rules.
  • Forum titles appear in the main forums index. Depending on your theme and bbPress settings, restricted forums can still be listed even though non-enrolled users cannot open them. If titles alone reveal too much, restrict the forums index page or build a custom index.
  • Search and direct reply links. Log in as a non-enrolled user and try bbPress search and a direct link to a reply. Restrictions are checked on forum and topic pages; confirm nothing private surfaces elsewhere on your setup.
  • Caching. A page cache that serves a forum page to logged-out visitors can bypass the redirect. Exclude forum URLs from full-page caching for logged-in users and test logged out.
  • Duplicate forum output. If the theme already shows forums and you add a shortcode too, you will see them twice. Remove one.

Frequently asked questions

Is the bbPress integration free?

Yes. Both bbPress and the LifterLMS integration are free. You only need the core LifterLMS plugin.

Can a student who finished the course still use the forum?

Yes, as long as their enrollment is still active. Completing a course does not end enrollment; expiry or cancellation does.

Can instructors moderate their course forums?

Moderation uses bbPress roles. Give instructors the bbPress moderator role, or make them forum moderators, so they can edit and close topics.

Does this work with BuddyBoss?

BuddyBoss Platform includes its own forums based on bbPress. See our LifterLMS BuddyBoss guide for how course forums fit there.

Next steps

Create one forum for your busiest course, attach it in the bbPress tab, add the shortcode to the first and last lessons, and post the first topic yourself. Then test it as an enrolled student and as a logged-out visitor. The full setup is also documented in the LifterLMS bbPress documentation.

If you need forums created automatically for each new course, per-course forum indexes, or moderation tools for a large community, our LifterLMS integrations service can build them. Tell us how your students should talk to each other.

Add LifterLMS Expert to your preferred sources

Add lifterlmsexpert.com as a preferred source on Google, or open this article in your AI assistant to use it as a source.

  • Add as a preferred source on Google
Free consultation

Prefer expert help over DIY?

Skip the trial and error. Get specialist LifterLMS help and ship faster.

Talk to a LifterLMS Expert Explore our services

Replies within one business day