バージョン2.0から bbPressはいわゆるショートコードをサポートしています。これらはWordPress ページ上のフォーラムコンテンツのレイアウトで使用されるマクロを作成するために導入されました。ショートコードを使用するには、目的のショートコードを WordPress ページに挿入するだけです。

$forum_idや $topic_idや $reply_id や $tag_idに設定する数値IDを取得するには、/wp-admin/ のアドレスにアクセスして投稿を編集するか、該当するフォーラムやトピックや返信の上にマウスを置く必要があります。そうすると /wp-admin/post.php?post=47のようにその投稿の数値IDが表示されます。

原文を表示する

Since Version 2.0 bbPress support so called Shortcodes. They have been introduced for creating macros to be used in the layout of your forum content on WordPress pages. To use any of the shortcodes simply insert the desired shortcode into any WordPress page.

To get the required numerical ID for $forum_id, $topic_id, $reply_id and $tag_id you will need to visit your /wp-admin/ section and either by editing the post or by hovering your mouse over the applicable forum/topic/reply/tag post type you will see a numeric ID for that post eg. /wp-admin/post.php?post=47

フォーラム

[bbp-forum-index] – これを使うと全フォーラムのインデックスを表示します。
[bbp-forum-form] – 「フォーラムを新規作成」フォームを表示します。
[bbp-single-forum id=$forum_id] – 1つのフォーラムのトピックを表示します。[bbp-single-forum id=32]といった書式で使用します。

原文を見る

[bbp-forum-index] – This will display your entire forum index.
[bbp-forum-form] – Display the ‘New Forum’ form.
[bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

トピック 

[bbp-topic-index] – 全てのフォーラムの最新15トピックをページネーション付きで表示します。
[bbp-topic-form] – 「新規トピックを作成」フォームを表示します。ドロップダウンメニューからこのトピックを関連付けるフォーラムを選択できます。
[bbp-topic-form forum_id=$forum_id] – 指定したフォーラムIDに関連付けられた「新規トピックを作成」フォームを表示します。
[bbp-single-topic id=$topic_id] – 1つのトピックを表示します。[bbp-single-topic id=4096]といった書式で使用します。

原文を見る

[bbp-topic-index] – Display the most recent 15 topics across all your forums with pagination.
[bbp-topic-form] – Display the ‘New Topic’ form where you can choose from a drop down menu the forum that this topic is to be associated with.
[bbp-topic-form forum_id=$forum_id] – Display the ‘New Topic Form’ for a specific forum ID.
[bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096]

返信

[bbp-reply-form] – 返信フォームを表示します。
[bbp-single-reply id=$reply_id] – 1つの返信を表示します。 [bbp-single-reply id=32768]といった書式で使用します。

原文を見る

[bbp-reply-form] – Display the ‘New Reply’ form.
[bbp-single-reply id=$reply_id] – Display a single reply eg. [bbp-single-reply id=32768]

トピックタグ

[bbp-topic-tags] – 全てのトピックタグのタグクラウドを表示します。
[bbp-single-tag id=$tag_id] – 指定したタグに関連付けられた全てのトピックの一覧を表示します。 [bbp-single-tag id=64]といった書式で使用します。

原文を見る

[bbp-topic-tags] – Display a tag cloud of all topic tags.
[bbp-single-tag id=$tag_id] – Display a list of all topics associated with a specific tag. eg. [bbp-single-tag id=64]

ビュー

[bbp-single-view] – 指定したビューに関連付けられたトピックを表示します。現在 bbPress で実装されている「ビュー」 は 「人気ビュー」 [bbp-single-view id=’popular’] と 「返信無しビュー」 [bbp-single-view id=’no-replies’]です。

原文を見る

[bbp-single-view] – Single view – Display topics associated with a specific view. Current included ‘views’ with bbPress are “popular” [bbp-single-view id=’popular’] and “No Replies” [bbp-single-view id=’no-replies’]

検索

[bbp-search] – 検索入力フォームを表示します。
[bbp-search-form] – 検索フォームのテンプレートを表示します。

原文を見る

[bbp-search] – Display the search input form.
[bbp-search-form] – Display the search form template.

アカウント

[bbp-login] – ログイン画面を表示します。
[bbp-register] – 登録画面を表示します。
[bbp-lost-pass] – ロストパスワード画面を表示します。

原文を見る

[bbp-login] – Display the login screen.
[bbp-register] – Display the register screen.
[bbp-lost-pass] – Display the lost password screen.

統計

[bbp-stats] – フォーラムの統計を表示します。

** まだ実装されていませんが、将来リリースされる予定です。

原文を見る

[bbp-stats] – Display the forum statistics.

** Not yet implemented, planned for future release.