I want to add topic’s thumbnail filed to specify the image file of the thumbnail of the topic in the topic creation item.
But i can’t.
Even if I specify an image file, only the name of the file is output, and maybe the image itself cannot be saved.
I added this code in “functions.php”.
If I make a mistake, Please let me know.
add_action ( 'bbp_theme_before_topic_form_content', 'bbp_extra_fields');
function bbp_extra_fields() {
$value = get_post_meta( bbp_get_topic_id(), 'bbp_extra_field1', true);
echo '<label for="bbp_extra_field1">URL</label><br>';
echo "<input type='url' name='bbp_extra_field1' value='".$value."'>";
$value = get_post_meta( bbp_get_topic_id(), 'bbp_extra_field2', true);
echo '<label for="bbp_extra_field1">pic</label><br>';
echo "<input type='file' name='bbp_extra_field2' value='".$value."'>";
}
add_action ( 'bbp_new_topic', 'bbp_save_extra_fields', 10, 1 );
add_action ( 'bbp_edit_topic', 'bbp_save_extra_fields', 10, 1 );
function bbp_save_extra_fields($topic_id=0) {
if (isset($_POST) && $_POST['bbp_extra_field1']!='')
update_post_meta( $topic_id, 'bbp_extra_field1', $_POST['bbp_extra_field1'] );
if (isset($_POST) && $_POST['bbp_extra_field1']!='')
update_post_meta( $topic_id, 'bbp_extra_field1', $_POST['bbp_extra_field2'] );
}
add_action('bbp_template_before_replies_loop', 'bbp_show_extra_fields');
function bbp_show_extra_fields() {
$topic_id = bbp_get_topic_id();
$value1 = get_post_meta( $topic_id, 'bbp_extra_field1', true);
$value2 = get_post_meta( $topic_id, 'bbp_extra_field2', true);
echo "Field 1: ".$value1."<br>";
echo "Field 2: ".$value2."<br>";
}
This is the error I am facing!


Getting 404 response while navigating between forum archive pages even though content are displayed. Issue is there in BBPress website as well. Please check the response for the https://bbpress.org/forums/page/2/ for reference.

Dear bbPress-ers!
Hello. I’m Herman.
I will greatly appreciate your assistance with a couple of problems with my forum I’ve been trying to fix for a couple of days now with no solution.
I wanted to display the message “Replies not viewable to non-members” to anonymous/not-logged-in users browsing my forum. This message replaces all actual replies with the generic one above. I was able to achieve this with the code below found on this page Dezzain website. The problem though is that this message shows up everywhere a reply is posted. So if there are 20 replies, there will be 20 generic messages.
So my request for help #1: I would like the 1 reply ONLY to display the generic message, and the other replies hidden. Any chance you can help me with it please?
#2, I would like to include a link to register/login in that generic reply. I am not too familiar with php. Can anyone rewrite the message below so that it also has a url portion for “Login here” | Register”?
Thanks so very much in advance.
bb_auth_reply_view(
$reply_id
) {
$reply_id
= bbp_get_reply_id(
$reply_id
);
// Check if password is required
if
( post_password_required(
$reply_id
) )
return
get_the_password_form();
$content
= get_post_field(
'post_content'
,
$reply_id
);
// first topic reply shouldn't be hiding
$rep_position
= bbp_get_reply_position(
$reply_id
);
// if user is not logged in and not the first post topic
if
( !is_user_logged_in() &&
$rep_position
> 1 ) {
return
"Replies only viewable for logged in users"
;
}
else
{
// return normal
return
$content
;
}
}
add_filter(
'bbp_get_reply_content'
,
'bb_auth_reply_view'
);
Hi
I created few forums and topics when I press on forums It’s give me the following error:
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
Can you please help
Thank you
Nicola
In the bbpress settings the option “Edit Lock” could not be set to 0 to allow allways edit the post! If you set it to 0, the default 5 minutes come back again!
Even if i set it to 0 in the database, it will be changed to 5 if you save the settings again!
Hi friends. I greet you from Uruguay. I am new to bbPress, I am setting up a site with Elementor’s HELLO theme and I am in need of improving the Topic and Answers editor, that is, giving the user more options such as a button with icons, a button to insert YouTube videos, etc … do you have any suggestions on this?
Thank you!!
Who can help….
Our forum has been running for over a year now but still I can’t find a solution to this problem.
What is the case? We are a site where you can post photos and observations of photo booths in specific topics.
When you post a comment and click send, I suddenly jump back to the very last page…. How can I make sure I stay on the 1st page of the topic?
Maybe a separate plugin?
Thank you very much for the effort.
Yvonne
bbpres 2.2.6
website hbnforum.nl
Hi, I made a forum for my site, I have categories that lead to forums, but on the main page that has the categories, under each title all the subforums show up and it doesn’t look clean.
How do I remove all the info under the category name?
Link to the forum site
forum.wealthmastersworkshop.com
Thanks for your help.
Hi i was going to use bbpress on my site https://yourwp.site
But the layout doesn’t look good on my theme.
There is some place with tips and/or code snippets to improve it?
I want to style the breadcrumbs because the forum page has a darker blue color. But the breadcrumbs have a very limited possibility to design them with CSS.
Only the bbp-breadcrumb-root and bbp-breadcrumb-forum link is addressable with css, the current menu item is no link and has no css class to address at all. This would be only possible with the parrent container, but then you style the forum content also!
It would already help if the breadcrumb would be in its own div container!