Search Results for 'bbpress'
-
Search Results
-
Topic: bbPress 2.6.22 is out!
Hey everyone! bbPress 2.6.22 is out. This is a security and maintenance release, so please update your site when you can. 🙂
It strengthens access checks for forum content and improves block theme rendering, forum tools, moderation performance, importers, BuddyPress compatibility, and PHP compatibility.
The release requires WordPress 6.0 or newer and PHP 7.2 or newer. No database upgrade is required. See the announcement and upgrade notes for details.
Download bbPress 2.6.22 from WordPress.org. Dashboard updates may take a few hours to appear.
Thanks to everyone who reported issues, contributed patches, reviewed changes, and tested this release!
I’ve just launched a small forum on my personal blog (custom block theme with light/dark mode), using bbPress plus one small mu-plugin, with no other add-ons: salvatorenoschese.it/community
I know forums aren’t exactly trendy anymore, and most conversations have moved to social networks and chat apps. But I still think they have real value: discussions stay organised, searchable and open to everyone, instead of getting lost in a feed or locked inside a group chat.
A few notes in case they help someone:
- Templates. Out of the box the forum pages didn’t display properly with my block theme: WordPress picked the wrong template and showed excerpts or the wrong content. Making bbPress pages use the theme’s full-width
pagetemplate, and letting the Post Content block print bbPress’s own output, fixed it. - Dark mode.
bbpress.cssuses fixed light colours, so I added a small stylesheet that maps them to the theme’s colour variables. It loads only on forum pages, and bbPress’s CSS isn’t loaded anywhere else. - Roles. Because of some unusual roles on my install, my admin account didn’t have the Keymaster forum role. Assigning it manually fixed it.
- Login. Logging out from the dashboard returned an error because bbPress’s logout filter conflicted with my custom login URL, so I removed that filter. I also replaced bbPress’s login form with links to the standard WordPress login, so all logins go through a single protected form.
- Profiles. The bio field stripped most HTML. I now display it with the same HTML WordPress allows elsewhere.
- Blog ↔ forum. Each blog post automatically gets a closed “showcase” topic in a dedicated forum, with the excerpt, a link to the post and the comment count, while comments stay on the blog. Title, tags and status stay in sync.
- Stats. Instead of
[bbp-stats], I built a small custom box at the bottom of the forum index. It shows topics, replies, members and the latest activity, leaves out the blog-posts forum, and only appears once there’s at least one real discussion. - Small things. Hover effects on mobile, the “Insert link” popup in dark mode, and cache purging (LiteSpeed) needed a few tweaks.
Overall, bbPress works well with block themes once the template part is sorted out. Thanks to the bbPress team for keeping it going!
Topic: I have a couple questions…
Wordpress version 7.1.4
bbPress version 2.6.21
https://fresnoareahomeschoolers.com/forums
I am using Elementor 4.3.6 and my theme is Hello Elementor1. How do I make the “home” link in the breadcrumbs go to the forums homepage instead of the site homepage?
2. I’m using Elementor to build the forums page, and I am trying to figure out how to have the forums list (using the shortcode [bbp-forum-index]) ONLY show on the forums homepage. But not show when you click on an individual forum or category. I know it likely has something to do with the way I’m customizing the forums page in Elementor’s theme builder… I have the page built (so far) like this:

3. How do I remove the “bbPress Forums” text at the top of my forums homepage?
Thank you in advance!
Hello everyone,
I’m planning to create a travel discussion forum where people can share their travel experiences, ask questions, exchange information, and discuss different travel destinations.
I’m particularly interested in creating a community where travelers can discuss tour packages, itineraries, travel permits, transportation, accommodation, preparation tips, and their pilgrimage experiences.
I’m considering using WordPress to build this forum and would like to know whether bbPress would be a good option.
Could anyone guide me on how to get started, organize forum categories, allow users to create topics and replies, and build an active travel community?
Any suggestions or recommendations would be greatly appreciated.
Thank you!
Topic: bbpress 2.6.21 problems
This morning, when updating bbpress to version 2.6.21, you can no longer log in to WordPress. The error appears:
[Tue Nov 03 09:26:00.376137 2026] [proxy_fcgi:error] [pid 7765:tid 140238693312256] [client 81.42.255.90:59938] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function bbp_get_theme_compat_excerpt(), 1 passed in /var/home/DOMAIN/www/wp-includes/class-wp-hook.php on line 353 and exactl and 2 expected in /var/home/DOMAIN/www/wp-content/plugins/bbpress/includes/core/theme-compat.php:491\nStack trace:\n#0 /var/home/DOMAIN/www/wp-includes/class-wp-hook.php(353): bbp_get_theme_compat_excerpt()\n#1 /var/home/DOMAIN/www/wp-includes/plugin.php(206): WP_Hook->apply_filters()\n#2 /var/home/DOMAIN/w ww/wp-content/plugins/js_composer/include/params/vc_grid_item/attributes.php(367): apply_filters()\n#3 /var/home/DOMAIN/www/wp-includes/class-wp-hook.php(353): vc_gitem_template_attribute_post_excerpt()\n#4 /var/home/DOMAIN/www/wp-includes/plugin.php(206): WP_Hook->apply_filters()\n#5 /var/home/DOMAIN/www/wp-content /plugins/js_composer/include/params/vc_grid_item/attributes.php(346): apply_filters()\n#6 /var/home/gr...', referer: https://DOMAIN/wp-login.phpPHP: 7.4 WordPress: 7.1.4 Theme: 2013 WordPressTopic: bbPress 2.6.21 is out!
Hey everyone! bbPress 2.6.21 is out. This is a security and maintenance release, so please update your site when you can. 🙂
This release strengthens access control for private and password-protected forum content and includes fixes across feeds, search, BuddyPress, old-slug redirects, attachments, topic moves, forum freshness, route handling, moderation, and reply administration. It also adds
ugclink relationships and refreshed administration icons.You can read more in the release announcement and upgrade notes. Download bbPress 2.6.21 from WordPress.org, or update right from your WordPress dashboard.
Thanks to everyone who reported issues, contributed patches, reviewed changes, and tested this release!
Is it expected behaviour that BBPress 2.6.20 would copy the forum content into the page excerpt? When I upgraded to 2.6.20 on my site, I now get two copies of the forum content, one at the top of the page in the excerpt, then the usual forum below. This happens when browsing the forums and even when making posts/replies.
Rolling back and things are displayed correctly. Is this expected behaviour or a bug, if it’s expected, how do I disable it?
site is https://videogameperfection.com/forums/ (now rolled back to 2.6.19). WP version 7.1.3. Theme is Flatsome – https://docs.uxthemes.com/
The breaking of preformatted text in tinyMCE visual editor when enabled in bbPress appears to be not a coding bug and more about a focus GUI pathway issue. We can take a defensive approach and patch the GUI pathway to offer a more robust option.
Rather than using TinyMCE’s normal paste and formatting behaviour inside a block, we:
– Isolates pasting in a plain-text textarea.
– Preserves whitespace and line breaks when reinserting the content.
– Escapes HTML characters to prevent pasted code from being interpreted as markup.
– Restricts formatting commands while editing inside a preformatted block.
– Allows through bbPress’s server-side filtering.This also raises the question of whether the issue is actually a bug in bbPress or TinyMCE itself. The behaviour may arise from the way focus, clipboard events and GUI interactions are handled when working inside a preformatted block, rather than from a discrete coding defect.
There is a proof of concept addressing preformatted-text preservation issues in bbPress’s TinyMCE editor. It introduces a dedicated plain-text paste workflow and protective formatting controls to help preserve whitespace, line breaks and literal code content, while allowing preformatted blocks to survive server-side filtering.
You can find a code snippet release under GPL and ask an AI like ChatGPT to explain why this is a workaround.
https://github.com/TinWho/Gator-Gate-Pre/blob/main/Gator-Gate-Pre.php
Deleting a single reply takes 30–45 s on a large forum (unindexable
meta_valuelookups)Summary
On a board with ~573,000 replies, permanently deleting one reply from
wp-admin/edit.php?post_status=trash&post_type=replytakes 42 seconds, and the web server returns a 500 before the request finishes:[fastcgi:error] FastCGI: comm with server ".../php8.3.0.fcgi" aborted: idle timeout (30 sec), referer: .../wp-admin/edit.php?post_status=trash&post_type=reply [fastcgi:error] FastCGI: incomplete headers (0 bytes) received from server ".../php8.3.0.fcgi"The delete itself does go through, so the admin is left with an error screen and no way to tell
whether it worked.Two separate queries are responsible. Both filter
wp_postmeta.meta_value, which has
no index in the WordPress schema, so both degrade linearly with the size of the board.Environment
- bbPress 2.6.20
- WordPress 7.1.3
- PHP 8.3
- MySQL 5.7.39 (InnoDB)
- Content: 47 forums (1
hidden), 1,391 topics, 572,724 published replies wp_postmeta: 2,395,731 rows; 574,165 of them_bbp_forum_id, 574,117_bbp_topic_id- Object cache: none (database-backed transients only)
How to reproduce
- Import or generate a board with a few hundred thousand replies.
- Trash a reply, then delete it permanently from the trash list.
- Watch the request time, or profile with
SAVEQUERIES.
Measured with
SAVEQUERIESaround a barewp_delete_post( $reply_id, true )
on the CLI, with no HTTP layer involved: 42.35 s, 183 queries.Cause 1 —
bbp_get_child_counts()scans every row of a meta keyIn
includes/common/functions.php,bbp_get_child_counts()(since 2.6.0,
r6827) runs:SELECT p.post_type AS type, p.post_status AS status, COUNT( * ) AS count FROM wp_posts AS p LEFT JOIN wp_postmeta AS pm ON p.ID = pm.post_id AND pm.meta_key = '_bbp_forum_id' WHERE pm.meta_value = '154459' GROUP BY p.post_status, p.post_typeBecause the
WHEREclause rejects NULLs, MySQL turns theLEFT JOINinto
an inner join and drives fromwp_postmeta. The only usable index is
meta_key, so it walks every row of that key and checks
meta_valuerow by row:EXPLAIN (without an extra index) table: pm type: ref key: meta_key key_len: 767 ref: const rows: 1127050 filtered: 10.00 Extra: Using where; Using temporary; Using filesortDeleting one reply calls this five times — once for the topic and once for each of the four
ancestor forums — at 3.2–4.9 s each:_bbp_topic_id:155815 3.88 s _bbp_forum_id:154457 3.63 s _bbp_forum_id:154458 4.56 s _bbp_forum_id:154459 4.86 s _bbp_forum_id:154460 3.18 sThe cache inside the function does not help: its key contains
wp_cache_get_last_changed( 'bbpress_posts' ), and the delete keeps modifying posts, so
every call after the first invalidation is a fresh query.Cause 2 — the hidden-forum exclusion adds a
CAST()that no index can servebbp_forum_query_last_reply_id()builds a deliberately leanWP_Query
(suppress_filters => true, no meta query). Butpre_get_postsstill runs,
andbbp_pre_get_posts_normalize_forum_visibility()injects
bbp_exclude_forum_ids( 'meta_query' )because the board has one hidden forum. The
result:SELECT wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE wp_posts.post_parent IN ( ...32 topic ids... ) AND ( wp_postmeta.meta_key = '_bbp_forum_id' AND CAST( wp_postmeta.meta_value AS SIGNED ) NOT IN ('154499') ) AND wp_posts.post_type = 'reply' AND wp_posts.post_status = 'publish' GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC, wp_posts.ID DESC LIMIT 0, 1The meta query is built with
'type' => 'NUMERIC'and
'compare' => 'NOT IN'(includes/forums/functions.php, around line 2806).
CAST( meta_value AS SIGNED )makes the predicate non-sargable, so no index on
meta_valuecan ever be used, andNOT INon a single hidden forum forces a
full join against the 574k_bbp_forum_idrows. Four of these run per delete,
0.7–2.8 s each.Note the shape of the exclusion: it asks “is this reply not in the one
hidden forum”, which has to touch every reply, instead of “is this reply in one of the 46
visible forums” or, simpler, instead of filtering by the forum ids the caller already knows.Workaround we are using
A composite index on
wp_postmeta:ALTER TABLE wp_postmeta ADD INDEX tq_key_value ( meta_key(32), meta_value(32) ); EXPLAIN (with the index) table: pm type: ref key: tq_key_value key_len: 262 ref: const,const rows: 966 filtered: 100.00Estimated rows for cause 1 drop from 1,127,050 to 966, the five child-count queries go from ~20 s
to 0.40 s in total, and the whole delete goes from 42.35 s to about
5 s — under the web server timeout, so the 500 is gone.The index does nothing for cause 2: the
CAST()still blocks it. Those queries are
what the remaining ~4.5 s is made of.Suggested fixes
bbp_get_child_counts()should not filter onmeta_value.
The same numbers are available from indexed columns: replies of a topic are
post_parent = <topic>, and topics of a forum are
post_parent = <forum>, so a forum’s reply count is one join over
post_parent(which is indexed) instead of a meta scan. If the meta lookup has
to stay for sub-forum aggregation, bbPress could create its own index on
(meta_key, meta_value)at activation, the way it already creates its other schema.- Drop the
CAST()frombbp_exclude_forum_ids( 'meta_query' ).
With'type' => 'NUMERIC'removed — meta ids are stored as plain digit strings
— the predicate becomes sargable and an index can serve it. - Prefer the positive form of the visibility filter.
meta_value IN (<visible forum ids>)is selective;
NOT IN (<hidden forum ids>)matches almost every row on the board. - Respect
suppress_filters, or add an opt-out for the maintenance path.
The recount queries run on ids bbPress already trusts; putting them through the public visibility
normalisation is both slow and pointless.
Happy to test a patch against this dataset.
Today a client reported being unable to save a regular post and was getting the error:
“Updating failed. Sorry, you are not allowed to edit the _bbp_topic_count custom field.”
We were on a recent release but not the latest. I updated to 2.6.20 and still saw the error myself when saving a draft post (unrelated to the forum on the site).
The issue seemed to disappear after a while and the post then saved. My concern is that saving a post should have no overlap with bbPress custom fields such as this.
When I start a new post and save draft, I get the same error.
WP 7.1.3.
Topic: bbPress 2.6.20 is out!
Hey everyone! bbPress 2.6.20 is out. This is a security and maintenance release, so please update your site when you can. 🙂
This release strengthens password handling, adds a site-wide Open, Closed, or Frozen Forum Status setting, and fixes issues across BuddyPress, moderation forms, subscriptions, notifications, converters, widgets, profiles, and topic and reply administration.
You can read more in the release announcement and upgrade notes. Download bbPress 2.6.20 from WordPress.org, or update right from your WordPress dashboard.
Thanks to everyone who reported issues, contributed patches, reviewed changes, and tested this release!
The bbPress forum looks bad on mobile phones; elements are misaligned, and the layout uses four columns, making everything feel cramped. The mobile view is odd—instead of information appearing on separate lines below the topic title, it is displayed in side columns, which causes the poor appearance.
The photos illustrate the difference between standard bbPress and bbPress with a style pack.
The issue lies in the bbPress architecture itself; it works well on PCs but is not suited for phones and mobile devices.
It looks exactly the same here on the bbPress support forum.



- Templates. Out of the box the forum pages didn’t display properly with my block theme: WordPress picked the wrong template and showed excerpts or the wrong content. Making bbPress pages use the theme’s full-width