When I installed, setup BuddyPress, enabled add-on, this error message appeared on header.
Warning: reset() expects parameter 1 to be array, boolean given in /public_html/wp-content/plugins/buddypress/bp-core/bp-core-template.php on line 3113
BP 2.9.3
AnsPress 4.1.7
Also it seems when enabling BuddyPress, AskBug’s nicely designed profile/about page is lost and overwritten by BP profile layout. Is there any way to keep the layout from AskBug theme and use BP just to customize user profile fields?
Hi
I mean this way as the screenshot?
http://prntscr.com/isdk2k
Alex
The number of answers to the question is displayed in the list of questions.
It calculates the answers in the status of “published”, “deleted”, but must be counted only in the status “published”.
If I correctly understood the code, then if you delete the answer, you must decrease the field $ _post-> ansvers
Good afternoon!
The user can not edit the answer, the error is “Trying to cheat?!”
Good afternoon!
The minimum comment length is set to 5 characters.
how to change the minimum comment length to 1?
Hello Rahul,
I searched at your site on how to use category shortcode, the right format seems like this: [anspress categories=”category_slug”]
but on my site, there is a category named “show”, so I use this shortcode in category page:
[anspress categories=”category_show”]
But it does not work, here is backend setting screenshot: http://prntscr.com/is5ca6
and here is frontend page: http://prntscr.com/is5ct4
anything wrong please?
Alex
——————————————————–
oh, it works again, but not really understand why it need take some time, but I am sure it is not cache related.
any way to show questions list by “category” and “feature” mixed shortcode please?
Alex
Hi Rahul,
WordPress uses filters to block HTML in category description (taxonomies).
This is what i use to unblock it:
// allow html in category and taxonomy descriptions
remove_filter( ‘pre_term_description’, ‘wp_filter_kses’ );
remove_filter( ‘pre_link_description’, ‘wp_filter_kses’ );
remove_filter( ‘pre_link_notes’, ‘wp_filter_kses’ );
remove_filter( ‘term_description’, ‘wp_kses_data’ );
BUT it does not effect the AnsPress category description.
How can i enable HTML in AnsPress category description?
Hey.
Download plug-in from the WordPress shop. I press the “activate” button, the page is updated, at the top of the page the inscription “plugin successfully activated”, with the plugin deactivated.
The latest version of the WordPress
Cretae new custom field:
function custom_form_fields( $form ) {
// Upload field.
$form[’fields’][’budget’] = array(
‘label’ => __( ‘Budget’ ),
‘desc’ => __( ‘Tu presupuesto máximo..’ ),
‘subtype’ => ‘text’,
);
return $form;
}
add_filter( ‘ap_question_form_fields’, ‘custom_form_fields’ );
Save field:
function question_mysave( $post_id, $post ) {
global $validate;
if ( empty( $validate ) ) {
return;
}
$fields = $validate->get_sanitized_fields();
update_post_meta( $post_id, ‘budget’, $fields[’budget’] );
}
add_action( ‘ap_processed_new_question’, array( $this, ‘question_mysave’ ), 0, 2 );
add_action( ‘ap_processed_update_question’, array( $this, ‘question_mysave’ ), 0, 2 );
Don’t save the custom field. ¿why?
Hi Rahul,
I am having problem in getting comment moderation email. As an Admin sometimes I get the emails and sometimes not, Is this a bug or I need to enble/disable some settings in anspress? Please help.
Thanks