bbp additional shortcodes

If you like one of my plugins, then please consider donating a small amount towards my time and effort in developing and maintaining them.

This small plugin adds various shortcodes to the bbpress plugin.

At present these include

 [bbp-display-topic-index show='5' forum = '10']

Displays the latest topics, optionally from a forum or forums – see below for detailed explanation

 [display-forum-index forum= '10,11' breadcrumb='no'  search='no']

Displays the selected forum indexes – see below for detailed explanation

[display-newest-users show = '10']

Displays the newest users together with their joining date in a table – see below for detailed explanation

Download the plugin

Installation

1. Download this plugin using the link below
2. Go to Dashboard>plugins>add new
3. Click Upload, and select the file ‘bbpress-shortcodes’
4. Click install
5. and then activate

 

Display latest Topics

To change the number of topics displayed and optionally display from a single forum, show stickies, or have just the bare minimum.

Note : the ‘show’ attribute is mandatory, the other attributes are optional

use the shortcode

[bbp-display-topic-index show='5']

where 5 is the number of posts you want to display

Optional extras !

Forum

You can limit to a single forum or forums

Single forum  eg

[bbp-display-topic-index show='5' forum ='10']

Several forums eg

[bbp-display-topic-index show='5' forum ='10,11,12']

To find the ID of a forum go into dashboard>forums>all forums and hover over the ‘edit’ of the forum you want to use.

You will see at the bottom of the page http://www.mysite.com/wp-admin/post.php?post=10&action=edit

where post=10 is the ID number of the forum.

Just the header and posts

If you don’t want the search function and ‘viewing topics 1-5’

then use

 [bbp-display-topic-index show='5' template ='short' ]

Stickies

If you want to show stickies then

[bbp-display-topic-index show='5' show_stickies='true']

You can use these in any combination

eg

[bbp-display-topic-index show='6' show_stickies='true']
[bbp-display-topic-index show='6' template = 'short' show_stickies='true']
[bbp-display-topic-index show='5' forum ='10' show_stickies='true' template = 'short']

Display one or more forum indexes

To display one or more indexes, or create an index display in any order

Note : the ‘forum’ attribute is mandatory, the other attributes are optional

use the shortcode

[display-forum-index forum= '2932' ]

or for a list use

[display-forum-index forum= '2932, 2922, 2921']

where the numbers are the ID’s of the forum(s)

To find the ID of a forum go into dashboard>forums>all forums and hover over the ‘edit’ of the forum you want to use.

You will see at the bottom of the page http://www.mysite.com/wp-admin/post.php?post=10&action=edit

where post=10 is the ID number of the forum.

Take out search

If you don’t want the search function

then use

[display-forum-index forum= '2932, 2922, 2921' search='no']

Breadcrumb

If you don’t want to show the breadcrumb then

[display-forum-index forum= '11326, 2922, 2921' breadcrumb='no']

You can use these in any combination

eg

[display-forum-index forum= '2932, 2922, 2921' search='no']
 [display-forum-index forum= '2932' breadcrumb='no' search='no']
 [display-forum-index forum= '2932, 2922, 2921' breadcrumb='no']

Display Newest Users

This shortcode displays the newest users together with their joining date in a table.

use the shortcode

[display-newest-users]

and it will display the latest 5 users.

If you wish to display a different number of users use the ‘show’ parameter eg

[display-newest-users show = '10']

will show the latest 10 users