Hi,
I am using bbpress for my forums, and the issue I am facing is – When adding a reply to a topic, the newly added reply is not showing. It will get shown only after another reply is added(At that point, this newly added second reply is not showing.)
The topic updated time period and author info seem to be updated correctly. Also, the replies to a reply are also updated correctly.
Changing my forum theme to 2019 helps to get the latest reply.. but what change should I do to get it back with my theme?
Any help would be appreciated.
But … when the theme of the site is updated, everything will disappear again.
The theme file will lose these functions again.
And again, the editor on the forum will disappear. It is so?
@robin-w if you remove the no-js
in php, then it doesn’t allow the reason for adding it which would be to test if the browser supports javascript/jquery.
Just an example
Say you have a slider(JS dependent) that you only want to show if the browser supports js, then adding .no-js .my-slider{display:none;}
would hide the slider if the browser didn’t support it, while if the browser supports JS then the no-js
would be removed by JS and the slider would be displayed. Because the only way the class was removed was with JS which would verify the browser supports JS.
So if you remove it with PHP then there is no test and the slider is shown regardless if the browser supports JS or not. Not sure what the percentage of browser users that have it disabled, sure it’s a very very small amount.
You can see that in theme TwentyTwentyOne in template-functions.php
the theme does it the same way I mentioned above in earlier post.
Just wanted to mention it, hopefully it gets updated shortly and a fix gets out for it.
That’s good, glad that worked out for you.
You could also put it in bbpress.php
in the plugin itself, then when the fix comes out and the plugin is updated it would get rid of it.
For others looking for a solution, I tried to edit my post above but couldn’t, when I mentioned functions.php
I mean the functions.php
file that is within your current active WordPress theme.
There were no changes to the topic entry in post or postmeta after I updated a reply.
The only thing that changes that I can see is the post_parent gets updated to the correct topic id in the posts table.
However, I have tried to change that value using phpMyAdmin, and it didn’t make the reply show up in the forum front end.
Since I updated to 2.6.7 only appears now the visual but not the HTML…
WHY?
I did refer to them and they said that I should find out what metadata was needed by BBPress, and make sure that was added when the form was submitted.
I researched the docs here and found that I needed to include _bbp_forum_id and _bbp_topic_id. So, the replies were being posted to the correct forum and topic, but they weren’t showing up on the front end of the forum. I read elsewhere in this forum that the post_parent had to be updated, so I did that using a code snippet.
But, the problem is that I am missing something for BBPress. Gravity Forms and the extension are working properly, but something is missing in BBPress until I update the topic from the back end.
A.Participant
Hello there,
we’re a WordPress Multisite and recently updated bbpress from 2.5.12 to 2.6.6 and figured out that on a user profile page no subscribed forum are being listed anymore but this message: “Oh bother! No forums were found here.”
But the user indeed has at least one forum he subscribed to. Subscribed topics are working just fine.
We also deactivated / activated the plugin, run the database upgrades but still no forum could be found.
How can this problem being solved?
I am having an issue where all users, even with Participant or Spectator user permissions, are able to create their own topics for discussion. The way our site is set up, we want to limit the topic creation to admins or moderators. I cannot find a setting anywhere to turn off this ability for users to create new topics. cmti.crown.edu using Learndash 3.5.1. I’m not certain the version of WordPress and bbPress we are using but both have been installed and updated in 2021. Thanks for your help.
Robin W,
Thank you very much for volunteering some thoughts. Especially that you indicating that changes this year haven’t affected the bbp_add_user_forum_subscription
function. And it appears that groups_join_group
is a BuddyPress function. Your reminder to turn on the debug was priceless. There was only one, unrelated notice.
I rechecked the Developer’s (Harsha Vetkatesh’s) code online and realized that he had added an updated version! At https://gist.github.com/greathmaster/e67f1ae0feb28c9ab3521b404c8e0544. I added it into a staging copy and it threw a specific error. I’m going to see if I can contact him.
Thanks again for the Forum. Our trail club uses it very frequently.
Best Regards,
~April
Hi, I just updated my site which was 7 years old and had bbpress1. The Forums and Topics have migrated ok but none of the posts are attributed to a poster. In all cases, including Admin, poster=Anonymous.However the poster IDs are showing in database tables wp_bb_posts and wp_bb_topics. I can’t see how to fix this. Any ideas?
A little update on this too. π
The $count of favoriters is updated correctly on topic’s single page.
But when the $count is called elsewhere, WordPress seems to take the first _bbp_favorite
encounter.
Looking at posts’ metavalues, it seems that every ‘favorite’ mention becomes an extra _bbp_favorite

My code doesn’t say anything about taking the highest number – maybe this would be the solution?
$subscriptions = get_post_meta(get_the_ID(), '_bbp_favorite', true) ;
$count = count($subscriptions) ;
$output .= '<li><a href="' . get_permalink() . '">' . get_post_meta(get_the_ID(), 'an_extra_field', true) . '</a><br> <span> Votes :' . get_post_meta(get_the_ID(), '_bbp_favorite', true) . '</span></li>';
}
$output .= '</ul>';
wp_reset_query();
}
return $output;
}
Hey there, I just updated to the newest version 2.5. I still canβt see the forum subscriptions (when I go to my account, there is just
do keep this updated – so many threads have the problem but authors don’t post their final solution – you are a star!!
Thank you @robin-w !
My first idea was to display:none
the_title but I’m definitely going to keep it.
I found the solution by installing a plugin called Hookr. It gave me some informations I needed after hours reading Bbpress’ files.
The ouput is a bit strange though…

As if the voice-count moved somewhere. The author is also displayed twice – I don’t remember it was like that before. Changing the shortcode used doesn’t improve this.
I’m going to figure out what happened here and keep this thread updated if it’s usefull for someone. π
I appreciate that you took the time to look.
Maybe sometime soon we will get an updated bbPress? Who knows …. Atleast one that says it officially supports the latest wordpress version that is out.
both.
i have issues cause forums are not updated and regular users have also issues logging in.
i’ve tried that above, cache on/off, multiple plugins, disabling cache on host side.
no idea how to deal with it.
If possible can you share the settings you’re using?
I’m having a lot of issues with cache and bbpress. Always have to CTRL+SHIFT+R to have updated contents and i’ve tried all options that i know.
Looks like something may have changed as this code is now producing a fatal error.
I used the second snippet to edit the reply emails but while the email send has been successfully modified (and is no longer bouncing), the user now gets a white screen…
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_bbp_no_reply_email’ not found or invalid function name in /home/customer/www/[domain]/public_html/wp-includes/class-wp-hook.php on line 287
Has something been updated in the codex?
how are you guys dealing with this?
even removing cache management in hosting, deleting all cache plugins and clearing browser data only worked for some time.
It’s a pain because my website in mainly forum wise and having to hard reload to get the updated topics ain’t good.
The plugin page shows last updated 9 months ago and Tested up to: 5.6.4 when the current version of WordPress is 5.8. Is bbPress still being maintained?
Hi,
I am looking for a solution to have my topic author post date to be updated whenever the topic/post content is edited – but cannot work out a way to do this effectively.
I have attempted to manually change post date as suggested at https://bbpress.org/forums/topic/changing-post-dates/ but it does not seem to work.
Any solution or ideas?
The reason is I have topics that were created 2-3 years ago that I regularly update depending on new information/changes to the topic subject. I don’t want to lose any comments associated with the topic and its completely inefficient to be deleting each topic and recreating them periodically.
Thank you!
Thank you Robin.
I did the change but didn’t solve the issue, let’s see if OP had more luck.
This is my updated code for the new role Crochetera.
// bbPress custom role
add_action ('wp_loaded' , 'load_new_roles') ;
function load_new_roles () {
add_filter( 'bbp_get_dynamic_roles', 'add_new_roles', 1 );
add_filter( 'bbp_get_caps_for_role', 'add_role_caps_filter', 10, 2 );
}
function add_new_roles( $bbp_roles ){
/* Add a role called crochetera */
$bbp_roles['bbp_crochetera'] = array(
'name' => 'Crochetera',
'capabilities' => custom_capabilities( 'bbp_crochetera' )
);
return $bbp_roles;
}
function add_role_caps_filter( $caps, $role ) {
/* Only filter for roles we are interested in! */
if( $role == 'bbp_crochetera' )
$caps = custom_capabilities( $role );
return $caps;
}
function custom_capabilities( $role ){
switch ( $role ) {
/* Capabilities for 'crochetera' role */
case 'bbp_crochetera':
return array(
// Primary caps
'spectate' => true,
'participate' => true,
'moderate' => false,
'throttle' => false,
'view_trash' => false,
// Forum caps
'publish_forums' => false,
'edit_forums' => false,
'edit_others_forums' => false,
'delete_forums' => false,
'delete_others_forums' => false,
'read_private_forums' => false,
'read_hidden_forums' => false,
// Topic caps
'publish_topics' => false,
'edit_topics' => false,
'edit_others_topics' => false,
'delete_topics' => false,
'delete_others_topics' => false,
'read_private_topics' => false,
// Reply caps
'publish_replies' => true,
'edit_replies' => true,
'edit_others_replies' => false,
'delete_replies' => false,
'delete_others_replies' => false,
'read_private_replies' => true,
// Topic tag caps
'manage_topic_tags' => false,
'edit_topic_tags' => false,
'delete_topic_tags' => false,
'assign_topic_tags' => false,
);
break;
default :
return $role;
}
}
I did a search on the BuddyPress site, but did not find any other forum topics. So I posted this new forum topic > https://buddypress.org/support/topic/split-forum-topic-secondary_item_id-db-row-not-updated/.
Overall it’s not a big deal since I rarely split forum topics and manually editing the DB only takes a minute to do. π