Someone may need it, so I’ll update it.
function hhj_bbp_random_topic() {
global $post;
$args = array('post_type' => 'topic','orderby' => 'rand','post_status'=>'publish','posts_per_page' => '10');
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br/>
<?php
endforeach;
wp_reset_postdata();
}
add_shortcode('hhj_bbp_random_topic', 'hhj_bbp_random_topic');
ref.
https://wordpress.stackexchange.com/questions/50761/when-to-use-wp-query-query-posts-and-pre-get-posts
It’s my site’s current layout, I have the forum or topic (depending on which page I’m on) on top and hopefully if I get a solution, the wordpress comments under
The plugin successfully activated once I moved to a live server, so that’s fine. But it’s not what I was looking for, am I missing something?
I’d like wordpress comments under forums or topics (single-forum.php or single-topic.php)
bbp style pack has buttons for subscribe
bbp style pack
once activated go to
dashboard>settings>bbp style pack>buttons
you can crack the code in includes/functions around line 336 if you want to look at code
probably could be this… I have access as administrator to WordPress but I dont have key master access… Will check
On the wordpress desktop, in the sidebar, where the pages, entries, settings tabs are, the forum, topics and replies tabs should show … these 3 do not appear and the forum option does not appear in the wordpress settings tab so i can’t change bbpress settings
ok, can you explain what you mean by
‘ the forum, discussion and answers tab does not appear on the wordpress desktop.’
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
I have bbpress installed but the forum, discussion and answers tab does not appear on the wordpress desktop.
Hi,
I am trying to export a large bbpress forum to another wordpress domain using the import and export tools in the wordpress, but it is not working due to large data and server is not responding after few minutes.
Is there any other way of exporting bbpress to another domain?
Any help would be highly appreciated.
Thank you.
My env:
WooCommerce version: 4.9.0
WordPress version: 5.6
PHP version: 7.4.14
MySQL version: 5.7.31
Plugin:
bbp style pack: 4.7.2
bbPress: 2.6.6
Easy WP SMTP: 1.4.4
The feature “Notify me of follow-up replies via email” does not work on my site.
I tested: go to Settings->bbp-style-pack->Subscriptions Emails -> 9. Send test email, click on ‘Send test email(s)’, but it still does not work.
Pls guide me on this.
Hi @neon67
Thanks to reply
Did you use the “prettyphoto” plugin?
(https://wordpress.org/plugins/prettyphoto)
Best Regards,
Hyunho
I found one that works well, it puts a dropdown on the RHS to allow author override.
bbPress Topic and Reply Author Override
Private groups
and enable topic permissions
the easiest was is to create a page with the same permalink as your forum slug, so in your case ‘forums’
so create a page called ‘forums’
in the content put the html you want and follow with the shortcode [bbp-forum-index]
if you are using blocks, wordpress has a shortcode block type ‘sh’ in type and it will appear.
and publish – check that it appears as http://mysite.com/forums
and that should work
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
add_action( 'bbp_theme_after_topic_author', 'rew_freshness_display_image');
function rew_freshness_display_image ($forum_id = 0) {
// Verify forum and get last active meta
$forum_id = bbp_get_forum_id( $forum_id );
$active_id = bbp_get_forum_last_active_id( $forum_id );
$link_url = $title = '';
if ( empty( $active_id ) )
$active_id = bbp_get_forum_last_reply_id( $forum_id );
if ( empty( $active_id ) )
$active_id = bbp_get_forum_last_topic_id( $forum_id );
if ( bbp_is_topic( $active_id ) ) {
//then reset forum_id to the forum of the active topic in case it is a sub forum
$forum_id = bbp_get_topic_forum_id($active_id);
$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
$title = bbp_get_forum_last_topic_title( $forum_id );
} elseif ( bbp_is_reply( $active_id ) ) {
//then reset forum_id to the forum of the active topic in case it is a sub forum
$forum_id = bbp_get_reply_forum_id($active_id);
$link_url = bbp_get_forum_last_reply_url( $forum_id );
$title = bbp_get_forum_last_reply_title( $forum_id );
}
$anchor = '<a class="rew_freshness_display_image" href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '"><img src="http://mysite.com/wp-content/uploads/2013/06/Brauhaus-2.jpg">' . '</a>';
echo '<p>'.$anchor.'</p>' ;
}
and change the <img src="http://mysite.com/wp-content/uploads/2013/06/Brauhaus-2.jpg" />
to the image you want – make sure it is sized right !!
the easiest way is to use
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Subscription Emails
and you can amend headings there
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
Not quite sure what you question is.
bbpress just uses wordpress registration and login, and your site permits automatic registration, so users can just sign up as long as they have a valid email address.
Hi, I contacted wordpress and understand that unwanted users are being automatically added to my site csmystics.com by bbpress. Can you stop doing that? It is annoying to see unwanted users automatically added and I have to keep deleting them.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Health Check & Troubleshooting
Then come back
GD bbPress Tools
It has option to quote reply or topic. This is the shortcode I refer to.
you can amend breadcrumbs in the style pack plugin
bbp style pack
once activated go to
dashboard>settings>bbp style pack>Breadcrumbs
Hi
My discussion is here:
https://github.com/EnlighterJS/Plugin.TinyMCE/issues/14
To summarize, I use EnlighterJS to display code blocks inside WordPress and bbPress. It is fantastic at what it does. However I have noticed odd behaviour if someone hits “Quote” and quotes a code block. You can see an example of what it looks like in the linked discussion.
It seems that the quote
shortcut might nee some updating to cater properly for EnlighterJS code blocks. I can’t remember if this particular shortcode is part of bbPress or part of the bbPress GD Toolkit.
displaying everyone’s email addresses even to only those that are logged in seems pretty risky, and without specific opt outs would break GDPR.
you might do better to install
bbPress Messages
this plugin whilst old still works as far as I know