this is the code bbpress uses
$topics_query = array(
// What and how
'post_type' => bbp_get_topic_post_type(),
'post_status' => bbp_get_public_topic_statuses(),
'post_parent' => $settings['parent_forum'],
'posts_per_page' => (int) $settings['max_shown'],
'meta_query' => array( array(
'key' => '_bbp_reply_count',
'type' => 'NUMERIC'
) ),
// Ordering
'orderby' => 'meta_value_num',
'order' => 'DESC',
// Performance
'ignore_sticky_posts' => true,
'no_found_rows' => true,
'update_post_term_cache' => false,
'update_post_meta_cache' => false
);
use if(strpos($wp->request, $bbpress_index) !== false) if you also want to restrict all possible sub-urls!
bbpress private groups does a good job to hide forums, but that still doesn’t remove the index page. if anyone needs to restrict the index page for a complete private forum, here is the code:
add_action( 'wp', 'restrict_bbpress' );
function restrict_bbpress()
{
global $wp;
global $wp_query;
$bbpress_index = get_option ('_bbp_root_slug');
if ($wp->request == $bbpress_index)
{
$user = get_userdata(get_current_user_id());
// Example for a user role member
if (! is_user_logged_in() ||
! in_array( 'member', (array) $user->roles ))
{
$wp_query->set_404();
status_header( 404 );
}
}
}
I have been scheduling posts for a while now and everything works fine EXCEPT that images included in the posts seem to disappear after a while. I am not sure why.
They will show as an attached image in addition to the embedded image, but I don’t need them both. If I remove the attached image, it also removes the embedded one.
What is the simplest way to have an image embedded in a scheduled post when I have to create those posts in the backend using the WP editor (instead of the forum itself)?
Here is an example of a simple post that I schedule every month and you can see the image will be different every month.
What are you working on (in August 2021)?
I currently have WP 5.8, bbpress 2.6.6, bbp style pack 4.8.9, bbPress Multi Image Uploader 1.0.6, and using the Classic editor in WP.
if forums are private then bbpress search should only show results to logged in users
I also have an account as a user and I unsubscribed from everything just recently. I have not received any communications from the system since Friday. We are just running GD bbPress Attachments as an additional plugin to bbpress.
The users that I am seeming have issues seem to be around a particular topic. Is there a place I can go look in the database and see what the user is subscribed to? When I login is as them, I unsubscribe from everything that was there. I also went in and turned off all their email notifications. They still received notifications the last few days. Must be something I am missing.
Any ideas is appreciated.
I wanted to style the body tag too, in the subpages like topic or forum the css class is in the body class section. the #bbpress-forums is deeper inside the page.
Are you running any other bbpress related plugins?
styling root page us
#bbpress-forums
eg
#bbpress-forums ul.odd
{
background-color:blue ;
}
or use
bbp style pack
Hi, i want to style the index (root) page with css.
As i see the pages for single forum and the topic etc. have the body class “bbpress” and “forum”, “topic” etc.
But the root index page have nothing of them. I doesn’t use a custom page for it, it’s all standard from bbpress settings.
Hi. Testing bbPress using Penci Soledad. Installed Robin’s Style Pack, but none of the changes are being registered. I cleared caches and all. I should note that I have a dark theme on my site and the styling needs help. Any advice?
Hi very new to bbpress so if this is easy and answer obvious please forgive a newbie.
Is it possible to set a forum up so the first post in a topic is available to public view
but any replies can only be seen by those registered. The owners association I’m asking the questions for wants to do this to encourage registration and joining the association.
Many thanks
Neil
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. 🙂
Atleast one that says it officially supports the latest wordpress version that is out.
I thought it now did – certainly here
bbPress
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.
Hello, I’m setting up bbPress for a client and I need to change the author of some forums to assign her as the author and not me. I can change the author of topics but there’s no option to do the same with the forums…
Appreciate any suggestions…
I getcha. Understood.
I use the bbPress Notify (No-Spam) plugin and for replies use this template:
A new reply has been posted by [reply-author].
Topic title: [reply-title]
Topic url: Link to Reply
Excerpt:
[reply-excerpt]
I support I could either remove the excerpt like you say or add another sentence:
Note:
Click on the link to log into the support forum and add your reply to the discussion. Please do not simply reply to this email with your response.
I tried using a string of codes someone posted here, but I couldn’t follow through.
So, can anyone direct me on how to remove that form at the end of forums and topics?
Take this BBPress website for example. The create New Topic takes us to the new page. But it’s not hanging below.
Hi,
I have recently started to have a problem on my site that I really can’t figure out, and I’m hoping someone here can help me to troubleshoot it.
Often, but not always, when someone posts on my site (not just in bbPress, but on the blog as well) I get a flood of a particular kind of query, which causes huge load spikes. Here is an example of one of the queries:
SELECT DISTINCT a.*, u.user_email, u.user_nicename, u.user_login, u.display_name FROM as_bp_activity a LEFT JOIN as_users u ON a.user_id = u.ID WHERE a.is_spam = 0 AND a.component IN ( ‘bbpress’ ) AND a.hide_sitewide = 0 AND a.type != ‘activity_comment’ ORDER BY a.date_recorded DESC LIMIT 0, 5
I have already posted this in the BuddyPress forum, but they said it was related to bbPress, so I should ask here.
so do you see the topic if you are not logged in, or not logged in as moderator/keymaster?
Usually you would just/only see ‘unapprove’ if topics automatically publish (so you would not see ‘approve’)
To see ‘approve’ usually you would have something set in
dashboard>settings>discussion that holds topics to await approval
or you mught have an additional bbpress related plugin that does this
either use the settings in
dashboard>settings>discussion
which lets you set say ‘before a comment appears’
or use
bbPress – Moderation Tools
which though old still works fine
Dear community,
I am using bbPress Version 2.6.6 and I am wondering what the “approve” button is for?
In my case whenever an user creates a topic or reply I see the “approve” button as an admin though the topic / reply has been already published?!
The most confusing thing is after I approve (or unapprove) a topic / reply it disappears and I can not find it nowhere anymore?!
Can anybody explain where I can find them and what this function is for?
Thanks in advance and best regards
Can anyone help with this? There is no way to post in forums at all. There is no post button. It just says “this forum is empty”
I am using all the recent versions of things. This is a new website. It is a member only website using wordpress, BBpress, Buddypress and some other plugins. Please help! In a time crunch!
http://www.michiganlibertyleaders.com