Daniel Weller
asked 6 years ago

I am trying to display a list of categories. I used this 

<div class="hcategories"><ul><?php wp_list_categories('hide_empty=0&exclude=1&orderby=id&title_li='); ?></ul></div>

to display a list of categories from the normal wordpress categories column. How can I do it using the custom categories with DW Q&A?

2 Answers
Daniel Weller
answered 6 years ago

Just incase anyone has the same question, this is what I used for my solution:

<ul><?php wp_list_categories('taxonomy=dwqa-question_category&hide_empty=0&orderby=id&title_li=');?></ul>
DominicStaff
answered 6 years ago

Hi,
Have you tried the solution in the answer here: http://www.designwall.com/question/ask-a-question-button/#answer-22384
Hope this helps !

Daniel Weller
replied 6 years ago

is the name of the custom taxonomy- dwqa-question_category?

Dominic Staff
replied 6 years ago

Exactly 🙂

Powered by DW Question & Answer Pro