你好呀,
我已经购买了许可证,但找不到在 AnsPress 中写入的位置。 

When I activate the Ultimate Member, the user’s questions do not appear in the profile , and when I cancel the Ultimate Member, the questions appear. What is the solution?

i need delelte title from question
and How can I add the number of questions that each user sends to his account

Hi,
I have trouble adding a custom field to the Question and reply form.
I have successfully added (and modified) the field to the question form. 

add_filter( 'buddypages_groups_get_is_admin', 'pluginizehelp_include_hidden_groups' );
/**
 * Add custom fields to AnsPress question form.
 * 
 * This hook will add two new fields in ask form.
 *
 * @param array $form Form arguments.
 * @return void
 */
function my_custom_question_field( $form ) {
     // Nickname question field.
  $form['fields']['anonymous_name'] = array(
    'label'       => __( 'Name', 'anspress-question-answer' ),
  'validate'    => 'required,badwords',
    'order'      => 2,
    'attr'       => array(
     'placeholder' => __( 'Kaldenavn' ),
    ),
  );
     // Age question field.
  $form['fields']['age'] = array(
     'type'          => 'input',
 'subtype'       => 'number',
      'attr'       => array(
     'placeholder' => __( 'Alder' ),
    ),
    'label'       => __( 'Your age', 'anspress-question-answer' ),
  'validate'    => 'required,badwords',
    'order'      => 2,
  );
   // editing question field.
  $form['fields']['post_content'] = array(
    'type'        => 'textarea',
    'label'       => __( 'Description', 'anspress-question-answer' ),
        'attr'       => array(
     'placeholder' => __( 'Spørgsmål' ),
    ),
  'min_length'  => ap_opt( 'minimum_question_length' ),
  'validate'    => 'required,min_string_length,badwords',
  );
     return $form;
}
add_filter( 'ap_question_form_fields', 'my_custom_question_field' );


But I cannot figure out how to save it.

  1. I am not sure where to expect it to be saved? Should it be saved to the wp_ap_qameta table to the “fields” column just like anonymous_field is? Or should i register an actual custom field? If so – how?
  2. How do I save it? I have tried the code bellow, but even with all the stuff commented out it is causing a 500 error to an AJAX call when submitting the question. It gets submitted but I am not redirected to the question page.
  3. I see no documentation on how to retrieve this custom field but it kind of depends on the answers to the previous 2 questions.

//----------- S A V I N G --------
function after_new_question($post_id, $post)
{
     $form = anspress()->get_form( 'question_form' );
    // Get all sanitized values.
    $values = $form->get_values();
    // Check nonce and is valid form.
     /*
    if ( ! $form->is_submitted() ) {
      echo __( 'Holla, you trying to cheat!' );
      return;
    }*/
   // update_post_meta( $post_id, 'age', $values['age']['value'] );
         }
add_action('ap_processed_new_question', 'after_new_question', 0, 2 );
add_action('ap_processed_update_question', 'after_new_question', 0, 2 );

I see this questin asked multiple times, but could’t work out the solution as some responses seem to be outdated or just pointing to this article https://anspress.io/resources/faq/anspress-form-and-validation-api/ that does not contain full solution.

Hi,
There’s a pagination problem at user account page. Questions in the list are the same for any page, they don’t get updated as pages are switched. This can be seen even in the admin account of this site:
https://anspress.net/questions/user/admin/questions/
vs
https://anspress.net/questions/user/admin/questions/page/4/


Hello, I do as said below:
1. An administrator posed a question.
2. User subscribed to that question
3. An administrator commented on the question.
User has not received an email with a comment notification. But since the user subscribed to the question, they should receive the email.

I have selected “moderate” for “status of new question” but the questions get published and display right away anyhow. I’m setting this up for my clients and they need this to function. Any ideas why it’s not working?

Hello,
I installed the AnsPress plugin. Everything seemed ok, but all the pages are 404, except the main Questions archive page.
Any solution?

I want to add a monthly limit for a subscription website. How can I make it.