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.
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.
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.
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.
Display a specific discussion reply, replacing $reply_id with the reply’s post ID.