https://bbpress.org/forums/topic/shortcode-on-the-page-php
I added [bbp-single-forum id=$forum_id] page post_type, how to make that outputs only 5 replies.
I added this code here:
function bbp_single_topic_query() {
if(is_singular( 'download' )) {
if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) )
bbp_get_template_part( 'loop', 'latest-topics' );
}
return;
}
add_action('bbp_template_before_topics_loop','bbp_single_topic_query');
it does not work for me. I maybe doing wrong?
Since you don’t show us what the permalink looks like, it’s hard to answer
can you post a link to the permalink and one to the page with the shortcode
closest you’ll get is my plugin
bbp additional shortcodes
If you can do some coding, you should be able to refine this further to your needs
this is the css to customize the color , i already put purple in, you can change that to a specific color.
if you are using the bbpress-new ui plugin , i dont know if that will cause a conflict or not.
copy this css anywhere where you can put custom css
jetpack custom css module
custom css plugin
bbpress.css file
HEADER
#bbpress-forums li.bbp-header {
background: purple;
}
i also put the footer css just in case you want to edit that too.
FOOTER
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
background: purple;
border-top: 1px solid #EEE;
font-weight: bold;
padding: 8px;
text-align: center;
}
Links that might help
Step by step guide to setting up a bbPress forum – part 2
bbPress Styling Crib
Step by step guide to setting up a bbPress forum – part 3
https://codex.bbpress.org/theme-compatibility/
Codex
@terriswiatekyahoocom
do mess with the templates in the plugin folder they will just be gone when you update the bbpress plugin.
just copy the templates to your child theme and edit those.
do not do inline styles, you can just add a class to the link and add the css to the bbpress.css file that you should copy to your child theme in a folder called css.
i would recommend not to put the code into your pagination template. it would be fine if you just put it into content-single-topic.php you can just put it i think under
<?php bbp_single_topic_description(); ?>
i gave you the wrong code earlier actually so my bad, the one i had takes you to the forum index.
this is the final code should be this exactly
<?php if ( bbp_is_single_topic() ) : ?>
<a class="bbp-back-to-forum" href="<?php bbp_forum_permalink(); ?>">Back to <?php bbp_forum_title(); ?></a>
<?php endif; ?>
what this does is only show the link on a single topic, so it wont show it on topics started page a subscribed/favorited topics page.
it takes you to the forum of any topic you have, so if you have multiple forums you wont have to write the exact link everytime.
it adds a class which is a.bbp-back-to-forum
and the link shows the actual name of the forum.
then you can style the link by using.
a.bbp-back-to-forum {
float:left;
}
drop the css into your bbpress.css in your child theme.
also please read the codex, it has alot of very useful information about bbPress.
Codex
I want to change the color background for the table where it says Forums, Topics , Replies and Freshness. i don’t know css or php I am using dreamweaver to try to figure out these short color codes. This is what I want to do: (photoshop was used to create the effect)

Like how the new ui plugin for bbpress does it but my color scheme. I just cant find the table
I’d like to display the recent posts on the forum without all the extra stuff, so just plain text. Preferably where I can customize what I want to show (e.g subject, time, by whom etc). That way I can make my own list.
For example:
Selling some stuff for things! By: ThatPerson Time: 13:37pm
Where did my stuff go? By: OtherPerson Time: 04:20pm
Doing for example:
<?php echo do_shortcode('[bbp-topic-index]'); ?>
Shows way too much information and also shows part of the theme etc.
Thanks @Robkk it wasn’t loop-replies.php but I found it. pagination-replies.php was the one.
I added it in right after bbp-pagination-count
<div class="bbp-pagination-count">
<a style="float:left;" href="http://intranet.skmgroup.com/forums/forum/skm-forum/">Back to Forums ></a>
<?php bbp_search_pagination_count(); ?>
</div>
I floated it left too so it was positioned where I circled in red.
Also this only seemed to work when I created a bbpress folder for the files in my child theme. Overwriting the template files in the plugins folder didn’t seem to do diddly.
making a post in my bbpress/wordpress forum site, i click the “link” in the wysiwig editor, add link and title then post, all the text, images put in with “img” button work except the front end post ignores the anchor tag. i can see the tag is there when i go back to edit the post.
here is the copied tag which bbpress generated:
++<+a href=”http://earthjustice.org/blog/2014-october/turning-the-tide-of-history-for-maui-s-four-great-waters” title=”Turning the Tide of History: Maui Waters Flow Again After 150 Years” target=”_blank”></+a>++ (i had to put plus sign + in the code because this post/bbpress.org forum is ignoring the tag too)
here is the post http://theboatpeople.org/forums/topic/maui-waters-flow-again-after-150-years/
you can see the above anchor tag in the page source using a web browser.
i can’t remember if i’ve ever used the button before in the last years. this id is the admin so it’s got to have authority to use this tag, it shows up in the wysiwig editor.
thanks for any help!
Hi I’m new on bbPress.
I have the following problem with the shortcode.
When I use the shortcode [bbp-forum-index] the forum shows up like this:
Forum
La Vie En France (1, 0), Bouwen en verbouwen (1, 0), Het franse dossier (1, 0), Het kopen en verkopen van een huis in Frankrijk (1, 0), Alles over deze website (1, 0), Recepten (1, 0), Chez Jo-Jo (2, 0)
When I use the shortlink it shows up as it should be.
How can? and what to do, because I prefer to use the shortcode.
Wordpress 4.0
bbPress 2.5.4
Theme Twentyeleven
Hi @andrecgro just do one thing create a folder named ‘css’ in themes/child-theme/ and copy bbpress.css from wp-content/plugins/bbpress/templates/default/css and paste the file in the css folder and then edit any element you want to… u can try those css too
https://codex.bbpress.org/bbpress-styling-crib/
I did so:
Font was larger, but the design has changed.
/* Я */
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-search-results {
font-size: 15px;
}
#bbpress-forums .bbp-forum-info .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta,
#bbpress-forums .bbp-forums-list li,
div.bbp-template-notice p,
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
font-size: 15px !important;
}
#subscription-toggle {
background: #E7FFE8;
margin-left: 5px;
padding: 0px 3px 0px 1px;
border-radius: 2px;
font-size: 15px;
}
/* /Я */
First of all, congratulations of your plugins, you guys did a real good job, again.
I’m trying to customize the theme of my bbPress forum and I can’t figure out how to edit some things.
For example, how can I edit,individually, the itens “Author” and “Post” on the section 5 of http://codex.bbpress.org/bbpress-styling-crib/
Thank you guys for helping me.
@pooledge just update my super-duper plugin 🙂 now it works fine with all permalink setups. Checkout and update — https://github.com/korobochkin/bbPress-permalinks-with-id
Known issue
If permalink looks like site.com?p=123 (not pretty permalink), the topic and reply edit links looks like:
site.com/?post_type=topic&p=814&topic=TOPIC_SLUG&edit=1
// TOPIC_SLUG — I dont known right now how to delete it but works fine with this parameter.
I have a developer that has been trying the same code on his test site without it removing the reply/topic counts either.
function remove_counts() {
$args['show_topic_count'] = false;
$args['show_reply_count'] = false;
$args['count_sep'] = '';
return $args;
}
add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );
I’ve been pasting that since the beginning. It’s at the bottom of my child theme’s function.php.
I have tried the new code. What I’m saying is that even though the pastes in here look wrong, it’s not. It’s because i’m not using “code” in here that it formats it.
I’ve copy pasted the code you provided, which was what I was using before (I just pasted it without “code”) here.
I’ve literally spent hours trying to fix this solution.
Yes. But that code is exactly the code I already had in my functions.php.
if so you haven’t tried the new code ! re-read the documentation
Yes. But that code is exactly the code I already had in my functions.php.
For some reason when I paste in this thread it changes certain things like ” to “.
Presume you have tried the new code?
STOP !!!
Ok, the codex has a couple of errors as it had not been updated following the release of 2.5.4 and also had some text that had been badly edited.
You have two choices – you cannot do both
either
Step by step guide to setting up a bbPress forum – part 3
which I have just updated with new code, or put this in your functions file
function remove_counts() {
$args['show_topic_count'] = false;
$args['show_reply_count'] = false;
$args['count_sep'] = '';
return $args;
}
add_filter('bbp_before_list_forums_parse_args', 'remove_counts' );
Both work
I am trying to set up a discussion forum on a website I manage using the step by step guide provided by bbpress.
I got through the steps of creating a forum and topic. However when I click on the forum a message displays that 1 topic is present in the forum. Then another message says “Oh bother! Nothing was found here!”
I have uninstalled the bbpress and re-installed it but I’m still running into the same problem.
Here’s a link to the forum page. It can also be accessed from the website’s main menu as follows: SURVEY >> PTRC Forums
My WordPress version is: 4.0
bbPress version: 2.54
Thanks in advance
I read this: https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/
and placed the same code into the loop-single-forum.php but it has an error.
Btw I’m not sure why the paste shows the improper type, in the actual code I paste into the function.php it looks like the correction you gave me.