Skip to content

Shortcodes

The addon registers six shortcodes. Five power the sub-views of the PeepSo profile Forums tab and are designed to run in that member-profile context, where they read the displayed user through bbPress (bbp_get_user_id()). The sixth lists a specific forum’s topics and is used by the group forum template.

Each shortcode renders a bbPress list and, when there are more results than one page, an AJAX Load More control (nonce wbpbi_ajax_security).

Lists the topics belonging to one forum.

  • Attribute: forum_id (required for meaningful output) - the bbPress forum id whose topics to list.
  • Used by the group forum template as [wbpbi_topics forum_id=ID].

Example:

[wbpbi_topics forum_id="123"]

Lists topics started by the profile member. Context-driven; no attributes are required.

Lists replies created by the profile member.

Lists topics the profile member marked as favorite (bbPress _bbp_favorite meta).

Lists forums the profile member is subscribed to (bbPress _bbp_subscription meta), under a “Subscribed Forums” heading.

Lists topics the profile member is subscribed to, under a “Subscribed Topics” heading.

  • The five wbpbi_profile_* shortcodes rely on the PeepSo profile page context to resolve which member to display. Placing them on an arbitrary page may not produce user-specific output.
  • All shortcodes accept a forum_id attribute for markup purposes, but the wbpbi_profile_* shortcodes select rows by the current user, not by forum_id.

Note: the AJAX “Load More” handlers for favorites and subscriptions query by a fixed meta value rather than the member id. See Troubleshooting for the impact on paginated favorite and subscription lists.