Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbp_get_user_profile_url

Published on December 13th, 2013 by jwarren

Description The ‘bbp_get_user_profile_url’ function returns the URL of the supplied user’s profile. How to use it $user_id – The specified user to return the profile link for. Sample code example Creates a link to the current user’s profile.

bbPress Conditional Tags

Published on December 13th, 2013 by Stephen Edgar

See WordPress Codex https://codex.wordpress.org/Conditional_Tags is_bbpress() /** Archive ***************************************************************/ bbp_is_forum_archive() bbp_is_topic_archive() /** Topic Tags ************************************************************/ bbp_is_topic_tag() bbp_is_topic_tag_edit() /** Components ************************************************************/ bbp_is_single_forum() bbp_is_single_topic() bbp_is_single_reply() bbp_is_topic_edit() bbp_is_topic_merge() bbp_is_topic_split() bbp_is_reply_edit() bbp_is_reply_move() bbp_is_single_view() /** User ******************************************************************/ bbp_is_single_user_edit() bbp_is_single_user() bbp_is_user_home() bbp_is_user_home_edit() bbp_is_topics_created() bbp_is_replies_created() bbp_is_favorites() bbp_is_subscriptions() /** Search ****************************************************************/ bbp_is_search() bbp_is_search_results()

Enable Visual Editor

Published on April 26th, 2013 by John James Jacoby

In bbPress 2.3.1, WordPress’s visual editor was defaulted to off. To turn it back on, try this code snippet in a plugin or your theme’s functions.php file: You can also customize the visual editor by adding more arguments into the function. Use this function below to only show the visual editor and not the html […]

Theme Compatibility

Published on June 10th, 2012 by masonjames

bbPress 2.x has built-in theme support. All required elements such as front-end editing are included. This means that all functionality will work, even when a theme has no specific bbPress templates or code included with it. All bbPress compat can be overridden using a theme or another plugin. Check bbp-theme-compat template wrappers for what a […]

bbp_forum_title

Published on May 21st, 2012 by Lynq

This function can be used inside template files to display the forum title. Example Usage Useful Template Functions

bbp_get_forum_reply_count

Published on May 19th, 2012 by Jarret

Description The ‘bbp_get_forum_reply_count’ function is used to return the total count of all replies to topics within a forum and sub forums How to use it $forum_id (optional) – Returns count for particular forum id $total_count (optional) – Returns total count for all replies in forum and sub forums by default and returns total count […]

bbp_forum_reply_count

Published on May 19th, 2012 by Jarret

Description The ‘bbp_forum_reply_count’ function is used to display the total count of all replies to topics within a forum and sub forums How to use it $forum_id (optional) – Returns count for particular forum id $total_count (optional) – Returns total count for all replies in forum and sub forums by default and returns total count […]

bbp_show_lead_topic

Published on May 19th, 2012 by Jarret

Description The ‘bbp_show_lead_topic’ function is an alternate layout style where topics appear as “lead” posts, ahead of replies whereas by default topics are included in the reply loop. How to use it When set to $show_lead = true the ‘Lead Topic’ uses the single topic part content-single-topic-lead.php allowing you to style the lead topic separately […]

bbp_forum_topic_count

Published on May 19th, 2012 by Jarret

Description The ‘bbp_forum_topic_count’ function is used to display the total topic count of a forum including sub forums. How to use it $forum_id (optional) – Returns count for particular forum id $total_count (optional) – Returns the total topic count with true including sub forums or just topics within that forum with false Uses bbp_get_forum_topic_count() Sample […]

bbp_forum_row_actions

Published on May 19th, 2012 by Jarret

Description The ‘bbp_forum_row_actions’ action is used to display content within forum topic rows for functions such as administrative shortcuts. Where it can be found Line 453 and 454 /includes/forums/template.php Line 48 /templates/default/bbpress/loop-single-forum.php How to use it Since this is an action, we can use add_action to hook into it. Sample code example This will display […]

Skip to toolbar