Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author DesignWall

    (@designwall)

    Hi,
    Please copy the template question-submit-form.php at wp-content/plugins/dw-question-answer-pro to wp-content/themes/your-theme-folder/dwqa-templates then replace the code below from

    wp_dropdown_categories( array(
    	'name'          => 'question-category',
    	'id'            => 'question-category',
    	'taxonomy'      => 'dwqa-question_category',
    	'show_option_none' => __( 'Select question category', 'dwqa' ),
    	'hide_empty'    => 0,
    	'quicktags'     => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ),
    	'selected'      => isset( $_POST['question-category'] ) ? sanitize_text_field( $_POST['question-category'] ) : false,
    ) );

    to

    wp_dropdown_categories( array(
    	'name'          => 'question-category',
    	'id'            => 'question-category',
    	'taxonomy'      => 'dwqa-question_category',
    	'show_option_none' => __( 'Select question category', 'dwqa' ),
    	'hide_empty'    => 0,
    	'quicktags'     => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ),
    	'selected'      => isset( $_POST['question-category'] ) ? sanitize_text_field( $_POST['question-category'] ) : false,
    	'hierarchical'  => true,
    ) );
    Thread Starter yj451549728

    (@yj451549728)

    ohh…good,thanks..

    Thread Starter yj451549728

    (@yj451549728)

    excuse me
    I have one more question.
    https://mixcg-1256075144.cos.ap-guangzhou.myqcloud.com/question2.jpg
    I ask questions by category.but
    https://mixcg-1256075144.cos.ap-guangzhou.myqcloud.com/question1.jpg
    there’s only one category,no parent。It should be “疑难杂症”“模型”
    sorry,my english is bad.

    Plugin Author DesignWall

    (@designwall)

    Yes, the plugin does not support to show the parent categories as you mentioned here. Just show the categories name that you have selected to submit a question.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘about category problem’ is closed to new replies.