so you are adding a ‘shortcode’ block and putting the [bbp-forum-index] in there – yes?
and what theme are you using?
I have 0 issue with my header, I can add other blocks but whenever I add the forum one my header doubles in size, changes place and doesn’t look the same anymore.
ok, so what theme are you using?
and which method in
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ part 3
are you using?
I’ve noticed some strange behavior and I’m not sure if it’s intended. When a topic is approved after being sent to moderation, and the user subsequently edits that topic, the revision log displays two revisions instead of one. Ideally, the log should only display the specific edit the user marked for logging, rather than all revisions.
I found this line of code which appears to accept any revision, including those not typically found in the bbPress log. Ideally, it should skip any IDs that are not explicitly present in the bbPress log.
quick response, I’m a UK farmer, so out a lot of the daytime !
As a ‘quick and dirty’ solution you would need to create the topic
Then in a new item I’ll add in the dashboard enter the post ID and the Topic ID
This will then create a new reply.
It will keep the existing comments.
from memory bbpress uses ‘anonymous’ for any user that no longer exists, but if you create a ‘deleted user’ I might be able to add that to the code
ok if you can wait a day or 2, then I’ll write a small plugin that will do that, most of the code already exists.
Thanks, Robin — much appreciated.
Unfortunately, no, I’m not comfortable with code, and definitely not at that level.
With the plugin you’re suggesting: am I correct in understanding that it does not import existing comments from the original post as replies in bbPress? What I would really like is to move all 78 comments over as replies in the bbPress topic, and ideally be able to delete the original post entirely afterwards.
I’ve already created the topic itself manually in the correct forum, preserving the original text, date, and author. The only remaining (small 🙂) problem is the replies. And since those 78 comments contain a lot of valuable content, it wouldn’t feel right to start over from scratch in the forum.
Ok, I am just a volunteer who helps out here, I am not a bbpress author, but I have written a number of bbpress related plugins.
I also took over a defunct plugin called
Post Comments as bbPress Topics
I did not write this, I just did enough coding to get it working again.
if you are code savvy, then function build_topic on line 485 of index.php should give you some code that you could maybe use in a plugin or use the code snippets plugin.
otherwise if you only have a few posts from which you want 2, you could enable it convert, disable it and then delete the topics (posts) you don’t want.
I’m using Kadence theme. I have followed instructions from Kadence support to use a child theme in order to make additional modifications to bbPress. I have also copied all the bbPress & css templates into the child theme.
Edit:
Thanks for the shortcode list.
I tried to follow the bbPress Codex set up instructions.
However, when I used Method 1 and created a page called “Forums”, the link sent me to a page with just the word “Forums” and nothing else. But once I deleted the “Forums” page, the link worked by showing the forum index. Is this the right way and the instructions are outdated?
2nd problem is that if I use Method 2 to create another forum style using another page and use shortcodes to show the forums, e.g. website.com/chats, if I type website.com/forums, I can still access the forums in that way, which is something that I do not want. I tried changing the “Forum Root” under Settings > Forums but it messed up the layout of the “Chats” page that I created using shortcodes. Is there any way to use Method 2 and still not let people access the forums using /forums?
Edit:
Lastly, is there a list of all the shortcodes that I can use for the forum? I know there is a list in bbp style pack and bbp Private Groups. Are there more shortcodes that I can use or is that all there is?
Bonjour,
Je me permets de vous contacter concernant un problème d’accessibilité sur le forum BBPress du site rayons.handivelo.fr. Plus précisément, j’utilise le shortcode [bbp-topic-form] pour permettre aux utilisateurs de créer un nouveau sujet.
Problème rencontré :
– Je parviens à lire les champs du formulaire avec mon interface vocale, mais la liste déroulante des forums/catégories n’est pas accessible.
– Mon lecteur d’écran indique qu’il y a 19 éléments dans la liste, mais je ne peux pas les lire ou les sélectionner correctement.
– Pour information, je suis non-voyant et j’utilise un logiciel de synthèse vocale pour naviguer.
Questions :
1. Existe-t-il un autre shortcode ou une alternative pour rendre cette liste déroulante accessible ?
2. Serait-il possible de remplacer la liste déroulante par des boutons radio ou des cases à cocher pour faciliter la sélection ?
3. Avez-vous des bonnes pratiques ou des plugins à recommander pour améliorer l’accessibilité des formulaires BBPress ?
Contexte technique :
– Site : rayons.handivelo.fr https://rayons.handivelo.fr
– CMS : WordPress + BBPress
– Interface utilisée : Lecteur d’écran (ex : JAWS, NVDA)
Je reste à votre disposition pour tester toute solution que vous pourriez proposer. Merci par avance pour votre aide, et je vous souhaite une excellente année 2026 !
Bien cordialement,
Christophe
I am not a bbpress author, I am simply someone trying to help out.
The slugs do whatever the plugin author codes them to do, and this plugin does not do that.
You can add this additional plugin
bbp style pack
once activated go to
dashboard>settings>bbp style pack>shortcodes
and you can see a shortcode you can use in a page
[bsp-profile]
with options for wording and edit
I am aware that forum works. I wonder how to get the user slugs in settings to work?
User profile
https://bindesboell.com/fora/users/
Replies by me
https://bindesboell.com/fora/replies
Wil I need to create a page for each user slugs that then has a shortcode on the page?
add_filter ('bbp_use_autoembed', 'rew_turn_off', 20,1 ) ;
function rew_turn_off ($value) {
return false ;
}
thanks for this code 😃
also: https://wordpress.com/support/wordpress-editor/blocks/embed-block/
but still astonished how something like this effect can happen
I’m just a moderator here – an unpaid volunteer, I’m not a bbpress author.
There will be a reason for it, and it is almost certainly site specific, no problem on my test site, and with 100,000 installations of bbpress not one I have seen or heard of in 14 years of supporting bbpress.
The code above is not a ‘fix’, it is just a way to get bbpress to ignore the setting, which allows your site to work.
Anyway glad you are fixed 🙂
added the code, it works
but still astonished how something like this effect can happen
that would be worth trying.
untested, but you could first try
add_filter ('bbp_use_autoembed', 'rew_turn_off', 20,1 ) ;
function rew_turn_off ($value) {
return false ;
}
ok, but this will take some time. Currently working in production environment, I have to set up a staging environment and not sure if this works due to memberpress, stripe/paypal connection and so on
Question: thinking about deactivate Auto-Embeds in WordPress completely with some code – what do you think?
add_action( ‘init’, function() {
global $wp_embed;
if ( $wp_embed instanceof WP_Embed ) {
remove_filter( ‘the_content’, array( $wp_embed, ‘autoembed’ ), 8 );
remove_filter( ‘the_content’, array( $wp_embed, ‘run_shortcode’ ), 8 );
}
add_filter( ’embed_oembed_discover’, ‘__return_false’ );
add_filter( ‘pre_oembed_result’, ‘__return_false’ );
if ( function_exists( ‘remove_filter’ ) ) {
remove_filter( ‘bbp_get_topic_content’, ‘bbp_topic_content_autoembed’, 2 );
remove_filter( ‘bbp_get_reply_content’, ‘bbp_reply_content_autoembed’, 2 );
}
}, 20);
I use Tove from Anders Noren and of course with a child theme
what do you mean with customized functions? I have a lot of code in my functions.php, but mainly for my customized loops, favorites plugin, styling comment function (not visible for not-logged-in users), Text to speech plugin, memberpress
nothing with embedded objects
ok, thanks.
the line of code referred to is looking for a host url on logout from bbpress.
‘$redirect_to = bbp_get_url_scheme() . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’];’
$_SERVER is a php thing and the manual says ‘$_SERVER an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server, therefore there is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here. However, most of these variables are accounted for in the » CGI/1.1 specification, and are likely to be defined.’
Are you maybe running on a local host?
Please can something be done about this error on a brand new site install:
[04-Dec-2025 07:20:05 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:20:05 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:21:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:21:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:21:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:21:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:22:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:22:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:22:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:22:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:23:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:23:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:23:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
[04-Dec-2025 07:23:04 UTC] PHP Warning: Undefined array key "HTTP_HOST" in /home/ourdomainapp/r877.ourdomain.app/wp-content/plugins/bbpress/includes/common/functions.php on line 1581
Would appreciate some feedback please
I’m pretty sure that the buddypress function hooks to the new_forum_handler in bbpress, so this should work
add_action( 'bbp_new_forum_post_extras', 'rew_add_pg', 10 , 1) ;
function rew_add_pg ($forum_id ) {
add_post_meta( $forum_id, '_private_group', 'group1', false );
}
Let me know of not.
if (!is_admin() ) {
add_filter( 'bbp_get_forum_content', 'rewst', 10 , 2 ) ;
}
function rewst ($content, $forum_id ){
if (!empty ($content)) $content= '<a class="bbp-forum-rew" href="'.bbp_get_forum_permalink($forum_id).'">'.$content.'</a>' ;
return $content ;
}
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
Thanks a lot, I fixed the code with chatgpt, but it didn’t work well with yoast…
/**
* 🔧 Custom SEO meta tags for bbPress forum index page
*
* This snippet replaces the default "Forum Archive" title and adds custom
* meta description + Open Graph tags (for Facebook, WhatsApp, etc.)
*
* ✅ Add this code to your theme’s functions.php or a custom plugin.
*/
function custom_bbpress_forum_index_meta() {
// Check if bbPress is active and we are on the main forum archive page
if ( function_exists('is_bbpress') && is_post_type_archive('forum') ) {
// 🔹 Custom SEO Title
add_filter('pre_get_document_title', function() {
return 'Your Custom Forum Title – Your Site Name';
});
// 🔹 Custom Meta Description and Open Graph Tags
add_action('wp_head', function() {
?>
<!-- 🧩 Custom bbPress Forum SEO Meta Tags -->
<meta name="description" content="Join our forum community! Discuss topics, share experiences, and get expert advice about your favorite subjects." />
<meta property="og:title" content="Your Custom Forum Title – Your Site Name" />
<meta property="og:description" content="Join our forum community! Discuss topics, share experiences, and get expert advice about your favorite subjects." />
<meta property="og:image" content="https://example.com/path-to-your-forum-image.jpg" />
<meta property="og:type" content="website" />
<?php
});
}
}
// Hook into 'wp' to ensure bbPress functions are available
add_action('wp', 'custom_bbpress_forum_index_meta');