Can’t place two custom post types into the WordPress search query?

Try to drop that in your functions.php file: function filter_query_for_search( $query ) { if ( isset( $query[‘s’] ) ) { $query[‘post_type’] = array(‘forum’, ‘topic’, ‘reply’, ‘any’); } return $query; } add_filter(‘request’, ‘filter_query_for_search’, 1); that would hook into the query just before its being executed.

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

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