Search Results for 'code'
-
Search Results
-
I thought perhaps we were dealing with a configuration or rights assignment issue when trying to implement BBPress with LearnDash, but I get the same result using the single forum shortcode on a basic page on our site with no content protection.
Topic: register page problem
I created a page with this code in it [bbp-register] and name this page forum register. However after updating the page and preview it, it keeps popping up my home page, not the forum register page. can someone help me with this? thanks.
Hi
after the last update, i got an error on line 1800 in functions.php when opening the forum page. according to forum entry here i downloaded and installed beta3. it worked again.
but now bbpress widgets as well as the shortcodes like this:
[bbp_recent_topics max_shown=”5″]
they, spit out all topics instead of only 5…what to do? install beta2? here is the link (NSFW!):
i leave the error in there for a moment, so you can see it.
thanks!!
Hi,
you provided me several months ago with a function that displays a search field in the bbp forum:function rk_bbp_search_form(){ if ( bbp_allow_search()) { ?> <div class="bbp-search-form"> <?php bbp_get_template_part( 'form', 'search' ); ?> </div> <?php } } add_action( 'bbp_template_before_single_forum', 'rk_bbp_search_form' ); add_action( 'bbp_template_before_single_topic', 'rk_bbp_search_form' );Although i appreciate this help, i have found that the relevansi search is better at finding all forum topics on my website. They have provided the code here to display a search box.
I would really like this to replace the one in the function above but am having a problem doing this.
I know this is cheeky, but can you help?Trying to diagnose a site why the pagination for the shortcode [bbp-topic-index] works only to page 2. Once you get to page 3+ (of 1200+ pages) it 404s. It only goes to page 2 regardless of what the per page setting is for topics. This is running PHP7.0.x, WP 4.8.1 and I’ve confirmed the issue on 2.5.12 and 2.6 RC3. Going back to 2.5.11 gives me the ksort expects param 1 to be an array error as do all other 2.5.x series. I have tested with all plugins deactivated except bbPress and tried all the usual default themes. Any thoughts?
I’m using this guide to show TinyMCE in my bbpress forum:
https://codex.bbpress.org/enable-visual-editor/function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['teeny'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );Is it possible to remove or hide some buttons in Visual tab?
I want to hide those:

Can someone help me?
Thanks đŸ™‚
I’m looking for a way to automatically assign a forum’s custom taxonomy to all of that forum’s topics.
I recently registered a custom taxonomy that I want to share across all pages, posts, forums and topics, and since I create most of the content on my site, assigning the right taxonomy to pages, posts, and forums is easy. But I’d rather not have to manually assign taxonomy to topics, especially since any of my members can create a new topic at any time.
Is there a way to tell WP to get the taxonomy for the parent forum, and automatically save all topics in that forum with the exact same taxonomy?
(If it helps, this is the code I used to register a custom taxonomy to be used on all pages, posts, forums and topics):
// Add custom taxonomy function postcats_init() { // create a new taxonomy register_taxonomy( 'game-categories', array('post','page','forum','topic'), array( 'label' => __( 'Games' ), 'rewrite' => array( 'slug' => 'game-posts' ), 'hierarchical' => true, 'capabilities' => array( 'assign_terms' => 'edit_pages', 'edit_terms' => 'manage_categories', 'assign_terms' => 'edit_pages' ) ) ); } add_action( 'init', 'postcats_init' );Hi,
I have no idea why but the forum/topic subscribe button is not appearing next to the breadcrumbs in bbpress forums as it should, i have enabled the functionality in the settings. This has never appeared but i’m probably missing something simple.
Is there a way to add this next to the forum title rather than in breadcrumbs? I’m not sure how to call it:
add_action( 'bbp_theme_after_forum_title', 'n8_after_forum_title' ); function n8_after_forum_title() { WHAT DO I ADD HERE?? }WP version: 4.8
BBpress version: 2.5.13Thanks!
LaurenI’ve got bbp style pack already. Some things don’t work and it might be the fault of my host because I had another issue that was caused by my host. When entering a forum, “Create new topic” appears automatically. I would like to remove the automatic “Create new topic” message and create a “create new topic” button. bbp style pack makes the button but won’t remove the automatic message. Can anyone suggest another plugin that will let me do this?
Also, in some of my forums I would like to rename the button from “Create new topic” to something else but only in some of the forums. I’ve been told this can be done with CSS. Can anyone give me the code for this? Thanks.
Topic: HTTP ERROR 500
I am getting a HTTP ERROR 500 when I click on a Forum e.g.: https://ebps.org.uk/forums/forum/biology/
If I click on a post – it works, i.e: https://ebps.org.uk/forums/topic/sporangia-under-the-microscope/
If I click on “All Forums” from the dashboard, I get the 500 error
If I click on “NEW Forum” it works
The error_log says:
functions.php:1800
Stack trace:
#0 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query))
#1 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
#2 /var/sites/e/ebps.org.uk/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
#3 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(1683): do_action_ref_array(‘pre_get_posts’, Array)
#4 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp-query.php(3248): WP_Query->get_posts()
#5 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(617): WP_Query->query(Array)
#6 /var/sites/e/ebps.org.uk/public_html/wp-includes/class-wp.php(735): WP->query_posts()
#7 /var/sites/e/ebps.org.uk/public_html/wp-includes/functions.php(955): WP->main(”)
#8 /var/sites/e/ebp in /var/sites/e/ebps.org.uk/public_html/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800This is the code
1793 /** Default ***********************************************************/
1794
1795 // Get any existing post status
1796 $post_stati = $posts_query->get( ‘post_status’ );
1797
1798 // Default to public status
1799 if ( empty( $post_stati ) ) {
1800 $post_stati[] = bbp_get_public_status_id();Any ideas?
The site that hosts my wordpress site told me that they don’t allow membership plugins on wordpress sites. So I can’t make login and register pages and put shortcode in them which is what many people do. My host says users can register and login via a different window which they sent me a picture of. I don’t know how to do an attachment so I’ll describe it. There’s 2 text boxes. The first one is “Username or email address” and the second one is Password. Above the small window is a big white capital W in a blue circle. Below the window is “Register” and “Lost Password”. I assume this is a default login window. This is what my host wants me to use. How do I set this up? Thanks.