⚡️Cyber Monday Flash Sale 70% Off:
H :
M :
S
⚡️

Utilize Forum Shortcodes

This guide explains how to use Forum Shortcodes on the BuddyBoss Platform. Site admins can easily display forums, discussions, replies, tags, search inputs, and statistics on any WordPress page by using the provided shortcodes. We also cover how to locate the required post IDs to reference specific forums, topics, or replies, ensuring your content displays accurately.

To get the required post ID for $forum_id$topic_id$tag_id, and $reply_id as required by certain shortcodes, you will need to log into the WordPress admin, and go into BuddyBoss > Forums and then find the post content you are looking to reference. Hover over the post and then click the ‘Edit’ link. Once the edit page loads you can copy the ID from the URL of the post, eg. /wp-admin/post.php?post=47 where 47 is the ID.

Explore BuddyBoss Platform | BuddyBoss App | BuddyBoss Pricing | Try BuddyBoss Demo

Forums

ShortcodeDescription
[bbp-forum-index]Display all of your forums.
[bbp-forum-form]Display the ‘Create New Forum’ form.
[bbp-single-forum id=$forum_id]Display a specific forum’s discussions, replacing $forum_id with the forum’s post ID.

Discussions

ShortcodeDescription
[bbp-topic-index]Display the most recent discussions across all your forums.
[bbp-single-view id='popular']Display popular discussions, ordered by number of replies
[bbp-single-view id='no-replies']Display all discussions that have no replies
[bbp-topic-form]Display the ‘New Discussion’ form where you can choose from a dropdown the forum to associate with the discussion.
[bbp-topic-form forum_id=$forum_id]Display the ‘New Discussion’ form for replying to a specific forum, replacing $forum_id with the forum’s post ID.
[bbp-single-topic id=$topic_id]Display a specific discussion, replacing $topic_id with the discussion’s post ID.

Discussion Tags

ShortcodeDescription
[bbp-topic-tags]Display a tag cloud of all discussion tags.
[bbp-single-tag id=$tag_id]Display all discussions with a specific tag, replacing $tag_id with the discussion tag’s post ID.

Replies

ShortcodeDescription
[bbp-single-reply id=$reply_id]Display a specific discussion reply, replacing $reply_id with the reply’s post ID.
ShortcodeDescription
[bbp-search]Display the ‘Search Forums’ input.

Statistics

ShortcodeDescription
[bbp-stats]Display the forum statistics.

Explore BuddyBoss Platform | BuddyBoss App | BuddyBoss Pricing | Try BuddyBoss Demo

Was this article helpful?

Related Articles

Subscribe to Our Newsletter

Stay In Touch

Subscribe to our Newsletter, and we’ll send you the latest news from BuddyBoss

  • This field is hidden when viewing the form
  • This field is for validation purposes and should be left unchanged.

To speak to our Agency consultant, fill in the form found at our Contact Page.

  • Get Started

    Enter your name and email address to get started with your project...

  • This field is for validation purposes and should be left unchanged.