How can I locate the single buddypress forum post template? [closed]

Even if I’m also not quite sure if this question is related to bbPress or BuddyPress, locating (plugin-) template files might always be the same: An easy approach might be to call the body_class() in a file which is definitely active (like header.php). The output will look something like this: class=”forum-archive bbpress archive post-type-archive post-type-archive-forum … Read more

How to enable truly anonymous posting in bbPress forums? [closed]

When we post an empty anonymous reply, we get the following errors: The part of BBPress that’s responsible for handling this, is the bbp_new_reply_handler() function, in the file /bbpress/includes/replies/functions.php. It contains these lines that are of interest to us: // User is anonymous if ( bbp_is_anonymous() ) { // Filter anonymous data $anonymous_data = bbp_filter_anonymous_post_data(); … Read more

bbPress – select a topic reply as “answer”

I’ve been thinking about making something similar, and also found those plugins to be outdated. I did create a ‘Mark as sold’ feature for some classifieds I recently added to my site, and I think it will use similar methods. I haven’t started development on it yet, but here’s the idea I’ve been kicking around: … Read more

bbpress Not Showing: How to troubleshoot?

The “most” stripped-down theme I can think of that can run BBPress is just a single index.php file containing: <?php // get_header(); if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); endwhile; else : _e( ‘Nothing!’ ); endif; // get_footer(); ?> So my guess is that your while loop is missing something … Read more

How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?

I accidentally got the answer: <?php global $post; $the_post_parent = $post->post_parent; $the_post_ID = $post->ID; $cat_posts = get_posts(‘post_type=bbp_forum&posts_per_page=-1’); print_r($post_parent); ?> <?php foreach ( $cat_posts as $post ) : ?> <li <?php if ( $post->ID == $the_post_ID || $post->ID == $the_post_parent ) echo ‘class=”current”‘; ?>> <a href=”https://wordpress.stackexchange.com/questions/13966/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), … Read more

bbPress plugin – How do I add a forum description?

Are you using the standalone, or the plugin? I’m not sure if there is a difference honestly, I’ve never touched the standalone. Anyway, I have the plugin going From my admin panel I have the option of adding/editing forums/topics/replies Clicking on Add New for forum brings up a standard WP post screen The title is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)