Profile photo of Constantine KarnaukhovConstantine Karnaukhov
asked 2 years ago


I want to bind the tag to the category in DW Question & Answer. So when user selects category, he was suggested to select a list of relevant tags. Is this really to implement?!

Sorry for my bad english.

Profile photo of Mauro ParavanoMauro Paravano
replied 2 years ago

Hi Constantine,
I hope you resolve this issue… Do you mind giving me a hand with this? I’m trying to do the same thing with tags.


1 Answers
answered 2 years ago

To display tag as drop downlist like categories in ask question, go to your theme folder and create a new folder , named it "dwqa-templates" .
Inside your new folder, create a new file: “question-submit-form.php”.
Now, open up the new file in notepad or any code editor, and copy/paste the code at this link:
Finally, add the following code to the functions.php file.


function dwqa_ask_form_tag_output($output){


 'orderby' => 'count',

 'order' => 'DESC',

 'hide_empty' => false,


 $tag_terms=get_terms('dwqa-question_tag', $args ) ;

 $output='<select name="question-tag" id="question-tag" class="postform">';

 $output.='<option value="">Select question Tags</option>';

 foreach($tag_terms as $tag_term)

 $output.='<option value="'.$tag_term->name.'">'.$tag_term->name.'</option>';


 return $output;


Hope this helps

Profile photo of Mauro ParavanoMauro Paravano
replied 2 years ago

I was trying to do this, but I have now the following msg when trying to submit a new question:
Parse error: syntax error, unexpected ‘8.’ (T_DNUMBER) in /homepages/7/d616545537/htdocs/clickandbuilds/ProJetMe/wp-content/themes/Divi/dwqa-templates/question-submit-form.php on line 14

Can you help?

replied 2 years ago

Please send me username & password of your site for further checking, I will help you resolve it.

Nagarjun Sarathy
replied 1 month ago

The above solution seems to work for single select from dropdown. How do I apply it for multi select of options and return the values to dwqa_ask_form_tag_output?

replied 1 month ago

At the moment, the plugin does not support to make multi-select option for the tags list.

Powered by DW Question & Answer Pro

Access years of experience in WordPress; Collaborate with professionals trusted by tens of thousands of people across the world.

Sign Up Today