No, it’s a WP 6.3.1 site I built specifically to test BBPress. It’s mostly just Elementor and Astra (Pros), the Classic Editor, Simple Custom CSS and JS PRO and BBPress. It’s behavior I haven’t seen with CSS overrides in WordPress before.
As you can see, the class specifies Roboto for the breadcrumb but it’s showing a serif font, even in the sample rollover in Inspector’s Styles window. The class works fine from the parent page but not in /forums/topic/

One thing I noticed as I was using CSS to re-style BBPress is that the CSS classes don’t carry over to individual discussions. That is, if I create a bunch of class overrides for the main page, in my test case /alpha-site, they go away under /forums/topic/. In Inspector it looks like the page defaults back to bbpress.min.css, overriding those class overrides.
Any way around this?
untested, but this should work
add_filter( 'bbp_get_topics_per_page', 'rew_amend_topics', 10 , 2) ;
function rew_amend_topics ($retval, $default ) {
$forum = bbp_get_forum_id() ;
if ($forum == 123) $retval = 10 ;
if ($forum == 456) $retval = 5 ;
return $retval ;
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
I have a bit of a mystery here, which I *think* involves an interaction between bbPress and BuddyPress. I’m going to put it out here, just in case anyone has any ideas. I have NOT tested this on a clean site with only bbPress and BuddyPress so it’s also possible that there’s some other interaction.
What’s happening is that BuddyPress notifications times look right with the exception of notifications for bbPress forum post/replies. Notifications for forum replies are offset by the site’s offset from UTC. So, for example, if the WordPress Timezone setting is “New York” (which is currently UTC-4) the a forum notification says “4 hours ago” immediately.
Any ideas?
on no. 4
So style pack got rid of the home – yes ? that shows that it is doing something.
So you have a page with a permalink of forum? yes?
With presumably the [bbp-forum-index] shirtcode in it – yes ?
and you have set the breadcrumb root to …com/forum. As a test can you try setting this to
https://www.facebook.com/
and see if it takes you to facebook
This will tell us if style pack is executing the link, but something else in your site is redirecting.
ok, let’s try the standard fault finding :
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error, starting with wpforms, and then style pack.
Then come back
1. suspect this is something learndash is doing – as a test confirm by deactivating learndash and see if they show.
2. The IP adrress only shows for keymasters, ordinary users won’t see it.
Hi There,
I have several questions about my forum. If you need me to ask these in different topic, please let me know, I’ll adjust it.
1. Some of my forums are open to everyone, also not registered users. I have them set as ‘status: open’ and ‘visibility: public’ but when I visit the forum, I get a message I’m not allowed.
The message I see is the message I set for customers that want to view a forum about a LearnDash course. Because only if the course is purchased, the forum should be visible for that user.
But now this message also pops up on forums that have nothing to do with LearnDash.
So how can I fix this?
2. In the forum I created some test posts and replies. So I am the author and my name is visible. But under my name (next to my role) is also my IP address showing. Why is that? And how can I deactivate that?
3. Because my website also has a shop the users will have an account of the general website. So if you want to see the profile (own profiles only) I need it to link to the user profile.
And also the button to register or login should link to the general pages.
Where can I set this?
4. I changed the settings of the breadcrumbs. I deleted Home, so the first one is now Forums. First Forums linked to the page I was already on. So in the bbp stylepack I set a new URL to the starting page of the forum – …com/forum. But somehow it links to …com/forums and that page I don’t want to use, never.
In the general WP settings, I found the Forum Root Slug settings and tried to change that from forums into forum. That didn’t work.
So now I don’t know how to make the ‘forums’ page go away and link the breadcrumb Forums to the right page.
Do you know the solution?
This is it for now…haha.
Hopefully you can help me, I’d really appreciate it!!
Thanks so much already.
Kind regards,
Eve
Robin:
I did the test, several times, clearing caches, etc, etc.
No change. The default role is still blank. No change.
At the top of the page, I see the snippet, so it’s running.
Robin:
Following your simple instructions for a snippet, I just wanted to check to make sure I’m making the test you suggested (thanks, btw):
Snippet Content, using wpCode snippet plugin:
add-action(‘plugins_loaded’,’rew_remove_bbp_role’);
function rew_remove_bb_role'(){
remove_action( ‘bbp_user_register’,’bbp_user_add_role_on_register’,10,1);
}
Snippet location: Universal Snippet
Is this correct?
ok, for the moment, I’d suggest you add the code snippets plugin, that gives you an area to put it in.
That will let us test to get to a problem definition.
Once we know if this (or something else) is the solution, then we can get it into the right place, but I would prefer to be sure that the code is functioning so code snippets gives that certainty
as a test, let’s stop it adding the forum role on registration to see if that is interfering.
so use this code
add_action ('plugins_loaded' , 'rew_remove_bbp_role') ;
function rew_remove_bbp_role () {
remove_action( 'bbp_user_register', 'bbp_user_add_role_on_register', 10, 1 );
}
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
and then let me know if this makes a difference
stupid me, I forgot I had made the forum private w=in a test I was doing, it works fine.
thanks,
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
you might also try
bbp style pack
once activated go to
dashboard>settings>bbp style pack>login failures
you’re close !!
Untested, but try
add_filter('bbp_topic_admin_links', 'rew_no_trash_topic_except_own', 10, 2);
add_filter('bbp_reply_admin_links', 'rew_no_trash_reply_except_own', 10, 2);
function rew_no_trash_topic_except_own ($links, $topic_id) {
if (!bbp_is_user_keymaster() && get_current_user_id() != bbp_get_topic_author_id( $topic_id )) {
unset($links['trash']);
}
return $links;
}
function rew_no_trash_reply_except_own ($links, $reply_id) {
if (!bbp_is_user_keymaster() && get_current_user_id() != bbp_get_reply_author_id( $reply_id )) {
unset($links['trash']);
}
return $links;
}
Today tried testing this very ‘rough’ piece of code, failed hopelessly with my very limited knowledge of coding:
add_filter('bbp_topic_admin_links', 'rew_no_trash_except_own', 10, 2);
add_filter('bbp_reply_admin_links', 'rew_no_trash_except_own', 10, 2);
function rew_no_trash_except_own ($links, $topic_id) {
if (!bbp_is_user_keymaster() && !bbp_is_topic_author(get_current_user_id(), $topic_id)) {
unset($links['trash']);
}
return $links;
}
I think the direction is somewhat correct. Hope to get expert guide on this issue.
Regards.
hmmm… that’s interesting, I fully believe you, but am struggling to see why it should either slow the site or cause other issues.
I would suggest you undo the content-search.php change you made above and see if that affects anything.
Beyond that, If that doesn’t work, also deactivate all plugins apart from bbpress and elementor plugin and my elementor fix and see if this sppeeds it up. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
I am just a moderator here, and not a bbpress author.
The authors tend to release updates every few years, rather than more frequently.
My personal view is that you should consider bbpress to be a ‘mature’ product, ie any releases will be to fix issues rather than add functionality.
bbpress is written really well, and has loads of hooks. There are no show stopper bugs in it, it may throw a few deprecation notices (and these are very few at the moment), but WordPress recommends that you should not show error messages in live sites.
I currently have my test site running WordPress 6.3 and php 8.1 with no issues.
The only major issue with bbpress at the moment is that it does not work well with FSE themes.
However my bbp style pack plugin has fixes for this
bbp style pack
as well as block versions of the widgets and a ton of styling and functionality add-ons.
All plugins are subject to the authors commitment, and bbpress is no different.
The main WordPress support forums use bbpress, and it would be mega work to move those over to some other product.
But with open software you make your choices….
on holiday at the moment, so untested solution !!
But try
add_filter( 'bbp_topic_admin_links' , 'rew_no_close', 10 , 1) ;
function rew_no_close ($r) {
if (!bbp_is_user_keymaster() && bbp_is_topic_open()) {
unset ($r['close']) ;
}
return $r ;
}
This should ensure that only keymasters can close topics (assumes moderators have no backend access)
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
Yes Robin, this is working.
So : I tried again you first add and it is working fine !
the html space code is still visible in TEXTE mode but not in the email.
I am very sorry because of still in the TEXTE mode visible I didn’t even tried first time to send a test subject and make you loosing time !
thank you for your perseverance and kindness.
I tried on the staging clone but I am going to use it on the production one. Thanks again.
Fred
ok, just tried that in my test site and the code above seems to work.
1. can you give me a exactly what you have put into your functions file, with a few lines above and below
2. are you using any other bbpress related plugins?
3. are you using any mail related plugins?
ok, not sure how to help further, maybe try
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
Thanks for the code! I tested and it basically works well.
@ph59 if you found not working, try change
('12345,34567,78945')
to
('12345','34567','78945')
Regards.
If the tests above proved nothing, then I can only suggest you have some form of corruption on either database or more likely software.
But can you confirm that this does not happen every time, and if so how often (eg 1 in 3 posts, 1 in 10, 1 in 100)?
Are you able to clone your site?