I trying to build a forum theme with divi, it is easy to create the theme for the general forum structure with the help of shortcodes
This is my forum
Forum
I can use the same theme for topics as well, as in this case:
https://www.aqazero.com/forums/forum/acquario-acquariofilia-%f0%9f%8c%8a%f0%9f%90%a0-aqa0-%f0%9f%90%9f%f0%9f%8c%bf/
Unfortunately, however, if I open the question (post) the theme is not inherited
https://www.aqazero.com/forums/topic/prova-topic/
Is there a shortcodes to display the question (post) and the area to reply (reply form)?
Thanks in advance for your answers..
Greetings,
I would like to ask you what is the best way to change the bbpress role names. For example Keymaster to Support Team.
I can’t find the way to do it, and some of the codes I found on the internet are old or I’m afraid they might break my site.
Thanks.
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
);
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;
}
use if(strpos($wp->request, $bbpress_index) !== false) if you also want to restrict all possible sub-urls!
add_filter( 'bbp_get_the_content', 'amend_reply', 10, 3);
Function amend_reply ($output, $args, $post_content) {
if ($args['context'] == 'reply' && $post_content == '') $output=str_replace('></textarea>', 'placeholder="Reply..." ></textarea>',$output) ;
return $output ;
}
Hi! how to use it for other forms? e-mail address and name that appear for not logged in users.
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 );
}
}
}
Hi,
I would like to remove the last page numbers in pagination,
is there any function code to do this?
at the moment, on latest topics on a big forum.. it shows like this..
styling root page us
#bbpress-forums
eg
#bbpress-forums ul.odd
{
background-color:blue ;
}
or use
bbp style pack
go save me re-reading all of a 5 year old thread, could you please state what shortcode, what pge url and what forum slugk you have
Found this, while searching for a solution with the shortcode on an own page. This issues seems still exist in 2021!!! If i create a page with shortcode the page show an empty page if the forum index has the same permalink as the the page!
It is working perfectly, except that you need to specify the good post type (here it is ‘topic’).
$query = bbp_get_all_child_ids($forum_id, 'topic');
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
interesting – yes that is not there in the front end
If you have skills with accessing the database then you can easily change it there, let me know and I’ll give you some help.
Otherwise come back with the numbers of the forums you want to change (you can see this in the url of the page when you edit a forum – eg
https://www.mysite.com/wp-admin/post.php?post=2927&action=edit
is shown for forum number 2927
so give me a list, and the user ID of the author you want to change them to, and I’ll give some some code
thanks for posting your solution.
you could do
add_action('bbp_theme_before_topic_title', 'show_true_title');
function show_true_title() {
$topic_id = bbp_get_topic_id();
$true_title = '<li class="specstanza-title"><a href="' . get_permalink() . '">' . get_post_meta( $topic_id, 'bbp_extra_field1', true); '</a></li>';
echo $true_title ;
and then in css do
li.specstanza-title {
color: blue;
}
or
.specstanza-title {
color: blue;
}
or
.specstanza-title li {
color: blue;
}
one of those should let you style the title
To anyone who would come accross the same project, I added an action to the bbp_theme_before_topic_title hook.
For now, it does not displays as I would like but some CSS will do the trick.
add_action('bbp_theme_before_topic_title', 'show_true_title');
function show_true_title() {
$topic_id = bbp_get_topic_id();
$true_title = '<li><a href="' . get_permalink() . '">' . get_post_meta( $topic_id, 'bbp_extra_field1', true); '</a>';
echo $true_title ;
The problems with this are multiple. Emails to site go into a mailbox – emails and web are separate – eg you can host you email with a totally different supplier, so in essence there is no ‘web software’ to catch an incoming email. So firstly the mailbox would need to exist on a mail server somewhere.
Next you’d need software on the email to look at all incoming, read the mail, work out if this is a reply, and to what message, check the sender’s mailbox to work out which user it is, and then get this software to send to another programme within the website, which can then create the reply.
The ability for spam and people pretending to be a user are numerous.
Github is created by very clever people, who have I presume done all this, but there would be a lot of code in many languages to achieve.
If it is an issue, then I’d suggest you amend your sending email to omit the actual content – so something like – ‘a new reply has been received, click here to read’ so that people have to click the link and are on the site to see content to reply to.
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 everyone,
I’m using the bbp_register_view_popular for the homepage of my offline website.
Works pretty well to sort_by my meta_value.
What I’m trying to do is to return a custom field as the main title.
I’m already doing this on custom pages and it works like a charm, here is my code :
$output .= '<li><a href="' . get_permalink() . '">' . get_post_meta(get_the_ID(), 'bbp_extra_field1', true) . '</a></li>';
How can I return the same thing in my custom_view for my homepage without actually changing permanently the_title from WordPress? the_title is absolutly needed and bbp_extra_field1 works a subtitle.
Many thanks to anyone who could put me on the right way π

The profile above is from the login-widget, and the profile below is from my php code.
However, it doesn’t not have a link to the user’s profile.
I would like to add a link to the profile screen in the image and username like above one!!!
please teach me…
i’m sorry for the inconvenience
Thank you Mr.Robin!!!
I tried using PHP code to put this button in place.
βHere is the codeβ
<!DOCTYPE html>
<html lang="ja">
<head>
<div class="login-box">
<?php if ( is_user_logged_in() ) : ?>
<?php bp_loggedin_user_avatar( 'type=thumb&width=40&height=40' ); ?>
<?php global $user_identity; echo $user_identity; ?>
<a href="<?php echo wp_logout_url( bp_get_root_domain() ) ?>">γγ°γ’γ¦γ</a>
<?php else : ?>
<a href="https://tokyolyric.com/wp-login-php">γγ°γ€γ³</a>
<?php endif; ?>
</a>
</div>
</head>
but I can’t go to “user’s profile page” from “the user’s image” and “user name”.
please let me know if there is any description to add to the code!!!
This is my website URL
sorry for making you wait.
The better term is probably “search result page”. The header of my bbp forum comes with a search bar which allows users to enter keywords (i.e. “browser”) and then takes then to the respective search result page (example: https://webgefaehrte.de/videoassistent/suchen/browser/).
I’d like to add a tag cloud into the existing side bar (right hand side).
Meanwhile I found this suggestion which, however, I can’t get to work π
The threats regarding #1 und #2 is this one:
– https://bbpress.org/forums/topic/problem-with-shortcode-tag-cloud-in-sidebar-widget/
– https://bbpress.org/forums/topic/change-font-size-range-for-tag-cloud/
Any advise is much appreciated.
Thanks,
Jan
ok you could also use a PHP variable rather than a wordpress function
so
$current_url = $_SERVER['REQUEST_URI'];
should give you the displayed URL in all cases.
you can then do an ‘if’ test to see if you are in forums using say
if (strpos($_SERVER['REQUEST_URI'], '/qaforums/') == true ) …then you are in the forums