Site admins can use shortcodes to display various types of forum content within WordPress. To use the shortcodes below, make sure the Forums component is enabled, and then copy and paste the shortcode onto any WordPress page, making sure to include the opening [
and closing ]
brackets with each shortcode.
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.
Forums
Shortcode | Description |
---|---|
| Display all of your forums. |
| Display the ‘Create New Forum’ form. |
| Display a specific forum’s discussions, replacing $forum_id with the forum’s post ID. |
Discussions
Shortcode | Description |
---|---|
| Display the most recent discussions across all your forums. |
| Display popular discussions, ordered by number of replies |
| Display all discussions that have no replies |
| Display the ‘New Discussion’ form where you can choose from a dropdown the forum to associate with the discussion. |
| Display the ‘New Discussion’ form for replying to a specific forum, replacing $forum_id with the forum’s post ID. |
| Display a specific discussion, replacing $topic_id with the discussion’s post ID. |
Discussion Tags
Shortcode | Description |
---|---|
404
@media
activity
activity stream
add photo
Ajax
avatar
bbpress
blog
boss
boss theme
buddyboss
buddyboss-wall
buddypanel
buddypress
Bug
Child Theme
Color
comments
conflict
css
customizer
docs
error
facebook
footer
forum
forums
front page
gallery
Group
groups
hide
icons
image
images
layout
learndash
like
links
login
logo
marketplace
menu
mobile
mobile menu
multisite
navigation
news feed
Notification
Notifications
page
photo
photos
plugin
plugins
post
privacy
registration
search
sensei
shortcodes
slider
social
social learner
social login
SSL
tags
template
theme
titlebar
update
updates
upload
video
visual composer
wall
widget
widgets
WooCommerce | Display a tag cloud of all discussion tags. |
| Display all discussions with a specific tag, replacing $tag_id with the discussion tag’s post ID. |
Replies
Shortcode | Description |
---|---|
| Display a specific discussion reply, replacing $reply_id with the reply’s post ID. |
Search
Shortcode | Description |
---|---|
| Display the ‘Search Forums’ input. |
Statistics
Shortcode | Description |
---|---|
| Display the forum statistics. |