Marko Zunic
asked 10 years ago

As i said, is there any solution for this,
i would like to have some default category that would be asigned to question if user did not choose any category on submit question page.

2 Answers
BigHug
answered 10 years ago

Hi Marko Zunic, 
You can override the template of thesubmit question form. To do so, you copy this file https://gist.github.com/bighug/11311568 into your-theme/dwqa-templates folder. And go to line 35 and replace the selected category ID that you want to choose with the default.
Regards

mariana mariana
replied 10 years ago

How do you know the cateory ID?

mariana mariana
replied 10 years ago

Sorry, I hope I didn’t post this twice, but how do you know the category ID?

BigHug
replied 10 years ago

In backend, when you edit a category, you will see your category ID in the URL on your browser address bar which looks like this: “…&tag_ID=

Guru
answered 10 years ago

Why not create a category called Other which the users can select if they think others not not most relevant!
 

Marko Zunic
replied 10 years ago

I have ‘Other’ category but sometimes user do not chose nothing before submit.. Can i have category and tag field required ?
So user must enter them before submit question?

dumann78
replied 10 years ago

yes good question if we can select category field required it will best.. + Marko you try BigHug’s way ? it work?

Powered by DW Question & Answer Pro