how to use custom post types collectively integrated with each other

If i understand right you want to create relations between custom post types, you can achieve this with this plugin http://wordpress.org/extend/plugins/posts-to-posts/ after installing go to your functions.php and setup relations <?php function my_connection_types() { // Make sure the Posts 2 Posts plugin is active. if ( !function_exists( ‘p2p_register_connection_type’ ) ) return; p2p_register_connection_type( array( ‘id’ => … Read more

bbpress plug-ins and buddypress [closed]

Yes, it is possible. However, your buddypress theme must be compatible with bbpress or else /forums won’t be setup correctly. Reference: http://devpress.com/blog/how-to-make-a-site-like-devpress/ bbPress for Forums or Message Board Although BuddyPress has group forums, I don’t have it enabled on DevPress. It’s because I prefer having a central forum for interaction and support instead of having … Read more

what is the topic-view page’s name? in bbpress

This will depend on your theme. But for the templates that come with the BBPress plug-in, the single topic template page is singe-topic.php. This in-turn doesn’t do much, but call content-single-topic.php. This displays stuff like the password form for protected topics, displays topic description etc. and then loops through the replies to the topic with … Read more

How to remove ( 0, 0 ) from forum page in bbpress [closed]

From my understanding, these are produced by the function bbp_list_forums(), as called in the template file bbpress/loop-single-forum.php. You should be able to copy that template into your theme and change the call to bbp_list_forums() as follows: <?php bbp_list_forums( array( ‘show_topic_count’ => false, ‘show_reply_count’ => false ) ) ?> See bbPress’s inline docs for bbp_list_forums() here: … Read more

Change the avatar ratio in bbPress login widget

You can filter ‘get_avatar’: add_filter( ‘get_avatar’, ‘wpse_67657_new_avatar’, 10, 5 ); function wpse_67657_new_avatar( $avatar, $id_or_email, $size, $default, $alt ) { // create a new img element or … $new = str_replace( ‘s=40’, ‘s=80’, $avatar ); $new = str_replace( ‘avatar-40’, ‘avatar-80’, $new ); $new = str_replace( ” height=”40″ width=”40″”, ” height=”80″ width=”80″”, $new ); return $new; } … Read more

Using my own user table

$wpdb is a global variable for the database class. In it $wpdb->users points to the name of the users table. As long as it’s the same database, you can use this to change the name of the table but it might create errors if the schema doesn’t match. Another way is to extend the wpdb … Read more

Loading bbPress CSS file only on forum directory

The styles are enqueued in the function enqueue_styles() inside the file /wp-content/plugins/bbpress/templates/default/bbpress-functions.php. It’s a matter of using is_bbpress() and wp_dequeue_style. Only one of the styles is enqueued, but here we’re removing all 3 possibilities. add_action( ‘wp_enqueue_scripts’, ‘bbpress_enqueue_wpse_87081’, 15 ); function bbpress_enqueue_wpse_87081() { // Check if bbpress exists if( !function_exists( ‘is_bbpress’ ) ) return; if( !is_bbpress() … Read more

pre_get_posts and BBPress in Swagger Theme

I’m not 100% clear on what the problem is, but I would start with putting the conditions inside the function instead of wrapping the entire function. add_filter(‘pre_get_posts’, ‘query_post_type’); function query_post_type($query) { if (!is_admin()){ global $oswcPostTypes; if(empty( get_query_var(‘suppress_filters’ ) ) { $post_type = get_query_var(‘post_type’); //get theme options global $oswc_reviews; if($post_type ) { $post_type = $post_type; set_query_var(‘post_type’,$post_type); … Read more