Search Results for 'bbpress'
-
Search Results
-
Hello fellow bbpressers,
I have a problem. Latest reply link in sidebar widget is not functioning properly in a thread with big amount of replies. On other threads it is functioning correctly.

Link is like this: http://dailyfantasysports.ru/forum/topic/ponesli-sandali-mityu/#post-21564
You see? There is no page slug in URL!
It has to be like this: http://dailyfantasysports.ru/forum/topic/ponesli-sandali-mityu/page/53/#post-21564
But it’s not!
How to fix it?
I’ve tried to repair forums (WordPress Dashboard -> ‘Tools’ -> ‘Forums’ -> ‘Repair Forums’ ) It helps. But only until next reply in this thread. After new reply link is broken again.
Please tell me how to fix it. Cannot solve this problem for whole month!
I found that my bbpress forum had been spammed with about 3000 posts so I edited the forum and deleted it from the admin menu, but now my entire website is unavailable:
The page you are looking for is temporarily unavailable.
Please try again later.
6c3c50bccd07516bcb39191096de0569 764d287ec9b0ed3349cd919dc56c049b fd108eaf5ae67f1a0e8a48d6dc69ca87Any help?
Topic: Query error
We are running WordPress 4.7.3 with bbpress 2.5.12 at http://one-name.org. This mysql error started appearing last night when accessing any forum, topic or reply. I believe it relates to the ‘AND ((()))’ clause:
Apr 06, 13:03:46
WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘))) AND ggx_posts.post_type IN (‘topic’, ‘reply’) AND (ggx_posts.post_status = ‘ at line 1 for query SELECT ggx_posts.* FROM ggx_posts FORCE INDEX (PRIMARY, post_parent) WHERE 1=1 AND (ggx_posts.ID = 29822 OR ggx_posts.post_parent = 29822) AND ((())) AND ggx_posts.post_type IN (‘topic’, ‘reply’) AND (ggx_posts.post_status = ‘publish’ OR ggx_posts.post_status = ‘closed’ OR ggx_posts.post_status = ‘retained’ OR ggx_posts.post_author = 5528 AND ggx_posts.post_status = ‘private’ OR ggx_posts.post_author = 5528 AND ggx_posts.post_status = ‘hidden’) ORDER BY ggx_posts.post_date ASC made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), apply_filters(‘template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include, apply_filters(‘bbp_template_include’), WP_Hook->apply_filters, call_user_func_array, bbp_template_include_theme_compat, BBP_Shortcodes->display_topic, bbp_get_template_part, bbp_locate_template, load_template, require(‘/plugins/bbpress/templates/default/bbpress/content-single-topic.php’), bbp_has_replies, WP_Query->__construct, WP_Query->query, WP_Query->get_postsI’m going to use bbPress but via shortcodes so that only topics and posts within the topics are displayed on pages. I don’t want the full Forum Root, Forums, Topics etc., displayed on a page. so I’m going to create individual pages for each topic assign the bbpress shortcode for the topic and posts. So is it really necessary to do page/slug assignments in bbpress setup and have the full thing displayed even though I’m not going to use the full bbpress forum display structure and I certainly don’t want to the public to see it.
or does anyone have any other suggestions on how to accomplish this?
The “forum” will the individual Page, the Topic will be the posts from users on the assigned page. there won’t be an actual “topic” for each forum since the forum is the topic.
1.) I have tested and deactived all plugins, but there is no difference. BBpress just throws 404 on all child forums.
2.) i have tested with permalinks. Nothing works except for “default”, then it finds the sub forums and displays them all other permalink modes/options fails.
3.) I have checked .htaccess and cannot find anything special that could make a difference. I haven’t changed anything for sometime. It (bbpress) has worked fine until now.
4.) I’m using the latest version of wordpress, bbpress & buddypress.
Any idea what could be worng here? I would appreciate anything that would point me in the right direction!
Thanks!
I’m trying to add a parent/child relationship between bbpress forums and a custom post type I’ve created. Is there a way to do that, currently I can only make forum a child of another forum?
I’ve tried adding a custom meta box that would allow that:
function my_add_meta_boxes() { add_meta_box( 'lesson-parent', 'Module', 'lessons_attributes_meta_box', 'forum', 'side', 'high' ); } add_action( 'add_meta_boxes', 'my_add_meta_boxes' ); function lessons_attributes_meta_box( $post ) { $post_type_object = get_post_type_object( $post->post_type ); $pages = wp_dropdown_pages( array( 'post_type' => 'lesson', 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __( '(no parent)' ), 'sort_column'=> 'menu_order, post_title', 'echo' => 0 ) ); if ( ! empty( $pages ) ) { echo $pages; } }This shows the metabox and I can select the CPTs from a dropdown list, they are not saved. This should be because the forum post type has hierarchy=>true. So I’ve tried to disable it using the below code, but it doesn’t work:
add_action('registered_post_type', 'disable_hierarchical', 10, 2 ); // Runs after each post type is registered function disable_hierarchical($post_type, $pto){ // Return, if not post type posts if ($post_type != 'forum') return; // access $wp_post_types global variable global $wp_post_types; $wp_post_types['forum']->hierarchical = false; }The above code works fine with the page post type, but not with the forum. What’s special about it that I’m missing?