Shivankit Sethi
asked 6 years ago

So, for example. 
I ask a question – Write a title, description and enter question tags. 
 
When that question is posted on the DW Q&A question list page I want the question’s tags to be displayed with the question instead of the category. is this possible?
 
Thanks
 

2 Answers
DominicStaff
answered 6 years ago

You can open the content-question.php file in the templates folder of dw-question-answer plugin then add the following code under line 16:

<?php echo get_the_term_list( get_the_ID(), 'dwqa-question_tag', '<span class="dwqa-question-tag">' . __( 'Question Tags: ', 'dwqa' ), ', ', '</span>' ); ?>
[email protected]
answered 6 years ago

Hi Dominic, 
Thanks for the update! 
I’m facing issues in getting this to work. After adding the line of code, the DW Q&A question list page doesn’t load. I’ve tried almost everything.  
Can you please help me with this?

Dominic Staff
replied 6 years ago

In this case, you should send me username & password of your site for further checking.

[email protected]
replied 6 years ago

Hi Dominic,
I got it to run! Sorry for the trouble 🙂

Powered by DW Question & Answer Pro