george489
asked 7 years ago

How do I get the “Forum Categories” widget to show categories and sub-categories in the same order that I have set up in the category drop-down list?
Note: I used “Category Order and Taxonomy Terms Order” plugin.

3 Answers
DominicStaff
answered 7 years ago

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,
) );
george489
answered 7 years ago

Thanks, but my question was how do I do it for the Forum Categories widget?
Please see attached screenshot.
 

DominicStaff
answered 7 years ago

At the moment, the categories widget does not support this issue, if you want to have it, we are ready to help you as a custom work with a charge of fee. In case that you are still interested in the feature, please kindly let us know, we will check and estimate the time

Powered by DW Question & Answer Pro